AndroidstudioからSDKを使ってFlutterアプリをビルドしようとするとエラーコードをはいてしまいます。
本日Flutterのアップデートの記載を見つけたのでそちらを実行いたしました。
エラーコードは下記のように出力されました。
色々調べてみた結果、解決できそうになく質問を投げることにいたしました。
問題なくSDKが起動できるようにする対処法を教えていただけると幸いです。
【エラーコード】
FAILURE: Build failed with an exception. * What went wrong: A problem was found with the configuration of task ':app:processDebugResources'. > File '/Users/akiya/Library/Android/sdk/platforms/android-29/android.jar' specified for property 'androidJar' does not exist. * 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.org BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1
【flutter doctor実施コード】
/Users/akiya/development/flutter/bin/flutter doctor --verbose [✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F101, locale ja-JP) • Flutter version 1.17.5 at /Users/akiya/development/flutter • Framework revision 8af6b2f038 (3 weeks ago), 2020-06-30 12:53:55 -0700 • Engine revision ee76268252 • Dart version 2.8.4 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0) • Android SDK at /Users/akiya/Library/Android/sdk • Platform android-30, build-tools 30.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.5) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.5, Build version 11E608c • CocoaPods version 1.9.3 [✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 46.0.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [✓] VS Code (version 1.46.1) • VS Code at /Users/akiya/Applications/Visual Studio Code.app/Contents • Flutter extension version 3.11.0 [✓] Connected device (1 available) • AOSP on IA Emulator • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) • No issues found! Process finished with exit code 0
あなたの回答
tips
プレビュー