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
arning.
[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
ules\cordova\node_modules\cordova-common\src\PlatformJson.js:34:21)
at Function.restoreMissingPluginsForPlatform (C:\Users\opulent\AppData\Roami
ng\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:159:
37)
at C:\Users\opulent\AppData\Roaming\npm\node_modules\cordova\node_modules\co
rdova-lib\src\cordova\prepare.js:95:31
at Array.map ()
at Function.preparePlatforms (C:\Users\opulent\AppData\Roaming\npm\node_modu
les\cordova\node_modules\cordova-lib\src\cordova\prepare.js:83:31)
at C:\Users\opulent\AppData\Roaming\npm\node_modules\cordova\node_modules\co
rdova-lib\src\cordova\prepare.js:64:39
at _fulfilled (C:\Users\opulent\AppData\Roaming\npm\node_modules\cordova\nod
e_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\opulent\AppData\Roaming\npm\node_modu
les\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\opulent\AppData\Roaming\npm\nod
e_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
(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.