5
1

More than 3 years have passed since last update.

AndroidStudioでアプリが実行できないとき

Posted at

事象

GitからクローンしてきたプロジェクトをAndroidStudioで開いた時に
アプリが実行できないときがある。
(Run'app'や Debug'app'のボタンが非活性になってしまう)

原因

app/build.gradleファイルのbuildToolsVersionに指定されているバージョンが
インストールされていないときに発生する。

対応

対応法としては、SDK Managerを開き、SDK Toolsタブで
右下の「Show Package Details」にチェックを入れる。
詳細なバージョンが表示されるので、app/build.gradleファイルのbuildToolsVersionに指定されている、
バージョンにチェックを入れ、インストールすると解消する。

5
1
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
5
1