You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sridharreddy U (JIRA)" <ji...@apache.org> on 2016/10/31 06:53:58 UTC

[jira] [Created] (CB-12091) Error: Unexpected token } in JSON at position 1957

Sridharreddy U created CB-12091:
-----------------------------------

             Summary: Error: Unexpected token } in JSON at position 1957
                 Key: CB-12091
                 URL: https://issues.apache.org/jira/browse/CB-12091
             Project: Apache Cordova
          Issue Type: Bug
          Components: AllPlatforms
    Affects Versions: 6.3.2
         Environment: I am using 6.4.0 cordova... I am not able to select this version in fix version, so I have used 6.3.2.
Here are my environment details
mac OS 10.12.1

$ cordova -v
6.4.0

$ ionic -v
2.1.4

$ node -v
v7.0.0

$ npm -v
3.10.8

            Reporter: Sridharreddy U
             Fix For: 6.3.2


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org