ほんとうになにもしていない、チュートリアルのアプリをビルドしようとしただけなのに。。。
エラー内容は下記です!
FAILURE: Build failed with an exception.* Where:
Build file ‘/Users/Appname/android/build.gradle’ line: 27* What went wrong:
A problem occurred evaluating root project ‘android’.
> A problem occurred configuring project ‘:app’.
> Failed to find target with hash string ‘android-28’ in: /Users/iori/Library/Android/sdk* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 2s
Finished with error: Gradle task assembleDebug failed with exit code 1
bundle.gradle の中身はこれだが
project.evaluationDependsOn(':app')
app で指定している SDK がないのか、SDK を入れ直したり場所を変えてみたりしたが解決されず、
解決方法としては build.gradle の
classpath 'com.google.gms:google-services:4.3.0'
で指定されている Google Service のバージョンを 4.3.0 から 4.2.0 に下げることでビルドできました。
コメント