Cordova - Error code 1 for command | Command failed for

后端 未结 9 1519
刺人心
刺人心 2020-12-03 01:16

I\'m new on cordova, so if my question is not relevant, forgive me. i have a cordova project in my Windows 7 x64 machine. Yesterday i was build my cordova app via cord

相关标签:
9条回答
  • 2020-12-03 01:48

    I found answer myself; and if someone will face same issue, i hope my solution will work for them as well.

    • Downgrade NodeJs to 0.10.36
    • Upgrade Android SDK 22
    0 讨论(0)
  • 2020-12-03 01:50

    Delete all the apk files from platfroms >> android >> build >> generated >> outputs >> apk and run command cordova run android

    0 讨论(0)
  • 2020-12-03 01:52

    I'm using Visual Studio 2015, and I've found that the first thing to do is look in the build output.

    I found this error reported there:

    Reading build config file: \build.json... SyntaxError: Unexpected token

    The solution for that was to remove the bom from the build.json file

    Then I hit a second problem - with this message in the build output:

    FAILURE: Build failed with an exception. * What went wrong: A problem was found with the configuration of task ':packageRelease'.

    File 'C:\Users\Colin\etc' specified for property 'signingConfig.storeFile' is not a file.

    Easily solved by putting the correct filename into the keystore property

    0 讨论(0)
  • 2020-12-03 01:54

    I removed android platforms and installed again then worked. I wrote these lines in command window:

    cordova platform remove android
    then
    cordova platform add android

    0 讨论(0)
  • 2020-12-03 02:00

    Faced same problem. Problem lies in required version not installed. Hack is simple Goto Platforms>platforms.json Edit platforms.json in front of android modify the version to the one which is installed on system.

    0 讨论(0)
  • 2020-12-03 02:03

    Delete platforms/android folder and try to rebuild. That helped me a lot.

    (Visual Studio Tools for Apache Cordova)

    0 讨论(0)
提交回复
热议问题