I have this error how to fix this?

F:\Mukesh smk\Tasks\Matrimony\matrimony>ionic cordova run android --device
Running app-scripts build: --platform android --target cordova
[10:41:06] build dev started …
[10:41:06] clean started …
[10:41:06] clean finished in less than 1 ms
[10:41:06] copy started …
[10:41:06] deeplinks started …
[10:41:06] deeplinks finished in 95 ms
[10:41:06] transpile started …
[10:41:11] transpile finished in 5.09 s
[10:41:11] preprocess started …
[10:41:11] preprocess finished in less than 1 ms
[10:41:11] webpack started …
[10:41:12] copy finished in 6.24 s
[10:41:20] webpack finished in 8.95 s
[10:41:20] sass started …
Without from option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to undefined to prevent this w
[10:41:23] sass finished in 2.07 s
[10:41:23] postprocess started …
[10:41:23] postprocess finished in 16 ms
[10:41:23] lint started …
[10:41:23] build dev finished in 16.37 s

cordova run android --device
Android Studio project detected

(node:7720) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token in
JSON at position 0
at JSON.parse ()
at Function.PlatformJson.load (C:\Users\opulent\AppData\Roaming\npm\node_mod
at Function.restoreMissingPluginsForPlatform (C:\Users\opulent\AppData\Roami
at C:\Users\opulent\AppData\Roaming\npm\node_modules\cordova\node_modules\co
at Array.map ()
at Function.preparePlatforms (C:\Users\opulent\AppData\Roaming\npm\node_modu
at C:\Users\opulent\AppData\Roaming\npm\node_modules\cordova\node_modules\co
at _fulfilled (C:\Users\opulent\AppData\Roaming\npm\node_modules\cordova\nod
at self.promiseDispatch.done (C:\Users\opulent\AppData\Roaming\npm\node_modu
at Promise.promise.promiseDispatch (C:\Users\opulent\AppData\Roaming\npm\nod
(node:7720) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function without a catch
block, or by rejecting a promise which was not handled with .catch(). (rejection
id: 1)
(node:7720) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.

[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?

[10:41:26] lint finished in 3.92 s

I resolved this problem by removing platform (i.e. ionic platform rm android ). And add platform (i.e. ionic platform add android ) again.