Details
Description
After the upgrade to Cordova 6.4.0, I am getting following error while adding platforms (android or ios) or any plugin. This error is coming at end of the output.
"Error: Unexpected token } in JSON at position 1957"
However, plugins, platform getting added successfully.
Here is output (removed my project specific info),
$ ionic platform add ios
Running command:
....
Adding ios project...
..
Creating Cordova project for the iOS platform:
..
iOS project created with cordova-ios@4.3.0
..
Error: Unexpected token } in JSON at position 1957
$ ionic platform add android@5.2.2
Running command:
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.test.myapp
Name:
Activity: MainActivity
Android target: android-23
Android project created with cordova-android@5.2.2
Error: Unexpected token } in JSON at position 1957
I am not sure consequences of this error, currently I am not able run the android app as it is not able to load the plug-ins while launching.