0
私はコードバのアプリをやっています。 iOSが正常に動作しています。しかし、今日、私はAndroid用に試しました。 私はコマンドを実行すると:私はビルドが失敗したコルドバビルドアンドロイド:Cordova/PhoneGap - ビルドに失敗しました。コマンドのエラーコード1
* 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
事実は私のコルドバフォルダ(名前はFCM)で、ですが、私は「ドン灰色のフォルダがあります。
更新: config.xmlでパッケージ名を変更したことを伝える必要があります。 それ以前は、AndroidでビルドはOKでしたが、既に使用されているパッケージで署名されているため、APKを実行できませんでした。
私は何をすべきですか?
このリンクをチェックしてください - http://stackoverflow.com/questions/37367247/how-to-sync-gradle-with-apache-cordova – Gandhi