ionicにてandroidのbuildについて質問です。
ionicないにて IC_ENV=stage ionic cordova build android
のコマンドを打った際に以下のエラーが発生。
BUILD FAILED in 3s 14 actionable tasks: 1 executed, 13 up-to-date /Users/username/######/app/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0. 1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.google.android.gms:play-services-auth:15.0.1 -> com.google.android.gms:play-services-auth-base@[ 15.0.1], but play-services-auth-base version was 15.1.0. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto com.google.android.gms:play-services-auth@11.8.0 For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
エラー文を見るにcom.google.android.gms:play-services-auth
のバージョンの問題かと思いましてこちらのバージョンをあげたところcompile時にエラーが発生。
app/src配下のbuild.gradleを覗くと
dependencies { implementation fileTree(dir: 'libs', include: '*.jar') // SUB-PROJECT DEPENDENCIES START implementation(project(path: ":CordovaLib")) compile "com.android.support:support-v4:27.+" compile "com.android.support:support-v4:24.1.1+" compile "com.facebook.android:facebook-android-sdk:4.+" compile "com.google.firebase:firebase-core:16.0.+" compile "com.google.android.gms:play-services-auth:11.8.0" compile "com.google.android.gms:play-services-identity:11.8.0" compile "com.android.support:support-annotations:27.+" // SUB-PROJECT DEPENDENCIES END }
となっておりCordovalib
のフォルダを見に行ったところ具体的な解決には繋がらず
他に何か知見などある方がいらしゃいましたらご教授頂けますと幸いです。
ionicinfo
1 2Ionic: 3 4 ionic (Ionic CLI) : 4.8.0 5 Ionic Framework : ionic-angular 3.9.2 6 @ionic/app-scripts : 3.2.3 7 8Cordova: 9 10 cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) 11 Cordova Platforms : android 7.1.4, ios 4.5.5 12 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 25 other plugins) 13 14System: 15 16 Android SDK Tools : 26.1.1 17 ios-deploy : 1.9.4 18 ios-sim : 8.0.1 19 NodeJS : v8.11.3 20 npm : 5.6.0 21 OS : macOS Mojave 22 Xcode : Xcode 10.1 Build version 10B61
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。