LoginSignup
0
0

More than 3 years have passed since last update.

MacのAndroid Studioで':app:debugRuntimeClasspath'エラー

Posted at

転載元

当記事は以下ブログからの転載です。
TECH BACK

はじめに

WindowsのAndroid Studioではちゃんと動いていたプロジェクトが、MacのAndroid Studioでは動かず。。。エラーに対応しました。

発生した、エラー・警告

もともとWindowsで開発していた、Android アプリ。Githubでコード管理していました。 コレを新しく買ったMacで開発しようと、
1. Androd Studioをインストール
2. GithubでClone

そして、Android Studioで開くのですが、、、 なんかエラーやら警告やら。。。

:prepareKotlinBuildScriptModel
 License for package Android SDK Build-Tools 29.0.2 not accepted.
 License for package Android SDK Platform 29 not accepted.
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'

Androidアプリのプロジェクトとして認識していないみたい

対応

Android Studio -> Preferenes...

Appearance & Behavior -> System Settings -> Android SDK

SDK Tools タブを表示すると、警告のひとつ目に表示されていた、Android SDK Build-Toolsがいますね。 右下のShow Package Detailsにチェックを入れると。

細かくバージョンが出てきます。
License for package Android SDK Build-Tools 29.0.2 not accepted.

と、警告が出ていたので、素直に29.0.2にチェックを入れ、下のApplyボタンクリック

後はウィザードにしたがって進めていけばOKです。

インストールが終わったら、Invalidate Caches / Restart...をしておきましょう。

Androidアプリとして認識したようです。 あと、Mac(m1チップ)なので実機でデバッグ。。。OKでした。

ちなみに

他にも、警告・エラーが出ていましたが、上記対応で出なくなりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0