繁体   English   中英

Cordova / PhoneGap-生成命令的错误代码1

[英]Cordova/PhoneGap - Build failed Error code 1 for command

我正在做一个cordova应用程序。 iOS运行良好。 但是今天,我尝试将其用于Android。 当我运行命令:cordova build android时,我的构建失败了:

* Where:
Build file '/Users/guillaume/Desktop/fcm/platforms/android/build.gradle' line: 22

* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'android']
   > Gradle version 2.10 is required. Current version is 2.2.1. If using the gradle wrapper, try editing the distributionUrl in /Users/guillaume/Desktop/fcm/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED


Error: Error code 1 for command: /Users/guillaume/Desktop/fcm/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/guillaume/Desktop/fcm/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

我试图按照它说的去做:将fcm/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip事实是,在我的cordova文件夹(名为fcm)中,我没有gradle文件夹。

更新:我必须告诉你,我在config.xml中更改了程序包名称。 在此之前,该版本在Android上还可以,但我无法运行APK,因为它已与已使用的软件包签名。

我应该做些什么 ?

尝试删除平台android并在构建之前重新添加。 我可能会为你们中的一些人工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM