MacのAndroid Studioで':app:debugRuntimeClasspath'エラー
転載元
当記事は以下ブログからの転載です。
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ボタンクリック
インストールが終わったら、Invalidate Caches / Restart...をしておきましょう。
Androidアプリとして認識したようです。 あと、Mac(m1チップ)なので実機でデバッグ。。。OKでした。
ちなみに
他にも、警告・エラーが出ていましたが、上記対応で出なくなりました。
Author And Source
この問題について(MacのAndroid Studioで':app:debugRuntimeClasspath'エラー), 我々は、より多くの情報をここで見つけました https://qiita.com/teckback/items/7b344e43a67f7379bbac著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .