Misaku
@Misaku (Misaku suzuki)

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

Android studio エミュレータが動かない件について

Android studio にて、 Flutter で アプリを作りたいのですが、

https://www.youtube.com/watch?v=kpvVENfDCRc&t=877s
この動画の通り、インストールし、パスを通し、bashでもzshでも通しました。
スクリーンショット 2022-01-09 19.17.59.png

このように、Androidのエミュレータが起動していて、flutter の初期状態?のプログラムが書かれていて(ファイルを作っただけで何も編集はしていない)、それをデバックするとエミュレータでアプリのような画面が立ち上がる、と動画では説明しているのですが、

左下にエラーが表示されてしまいます。
内容は

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Launching lib/main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
Checking the license for package Android SDK Build-Tools 29.0.2 in /Users/katayama/Library/Android/sdk/licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.
Checking the license for package Android SDK Platform 31 in /Users/katayama/Library/Android/sdk/licenses
Warning: License for package Android SDK Platform 31 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Failed to install the following Android SDK packages as some licences have not been accepted. platforms;android-31 Android SDK Platform 31 build-tools;29.0.2 Android SDK Build-Tools 29.0.2 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: /Users/katayama/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.org

BUILD FAILED in 37s
Exception: Gradle task assembleDebug failed with exit code 1

さっぱり意味がわかりません。
エラー分の中にURLがありますが、飛んで行っても一個は削除されたページ、もう一つは掲示板か何か?のようなサイトでした、、謎です。
ネットでも検索したのですがとても情報が少ないようです。

どなたかお力を貸してください。
よろしくお願いします。

0

No Answers yet.

Your answer might help someone💌