Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12091

Error: Unexpected token } in JSON at position 1957

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 6.3.2
    • 6.3.2
    • AllPlatforms
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sridharreddyu Sridharreddy U
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: