Cordova - Error code 1 for command | Command failed for

后端 未结 9 1520
刺人心
刺人心 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 02:04

    I have had this problem several times and it can be usually resolved with a clean and rebuild as answered by many before me. But this time this would not fix it.

    I use my cordova app to build 2 seperate apps that share majority of the same codebase and it drives off the config.xml. I could not build in end up because i had a space in my id.

    com.company AppName
    

    instead of:

    com.company.AppName
    

    If anyone is in there config as regular as me. This could be your problem, I also have 3 versions of each app. Live / Demo / Test - These all have different ids.

    com.company.AppName.Test
    

    Easy mistake to make, but even easier to overlook. Spent loads of time rebuilding, checking plugins, versioning etc. Where I should have checked my config. First Stop Next Time!

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

    I had the same error code but different issue

    Error: /Users/danieloram/desktop/CordovaProject/platforms/android/gradlew: Command failed with exit code 1 Error output: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0

    To resolve this issue I opened the Android SDK Manager, uninstalled the latest Android SDK build-tools that I had (24.0.3) and installed version 23.0.3 of the build-tools.

    My cordova app then proceeded to build successfully for android.

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

    In my case it was the file size restriction which was put on proxy server. Zip file of gradle was not able to download due this restriction. I was getting 401 error while downloading gradle zip file. If you are getting 401 or 403 error in log, make sure you are able to download those files manually.

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