LoginSignup
6
3

More than 5 years have passed since last update.

AndroidStudioでfailed to find target android-22エラー

Posted at

はじめに

以下の書籍を読みながらAndroid向けのゲーム開発をしていたところ、環境構築でいきなりつまずいてしまった!

はじめてでもよくわかる! Cocos2d-xゲーム開発集中講義 [v3.10対応]

第2構において、cocosで作成したサンプルプロジェクトをAndroid Studioにインポートするのだが、インポート時に「failed to find target android-22エラー」が発生する。

環境変数やbuild.gradleを確認したが全く原因不明だった。

解決方法

正直何が原因だったのかはわかっていないが、「Android SDK Manager」の「SDK Platforms」より「Android 5.1.1」一式をインストールすることにより解決した。

書籍にはandroid-22のBuild-toolsをインストールする旨しか書かれていなかったが、それだけでは足りないツールやファイルがあったということだろうか。。。
※上記書籍の出版は2016年3月25日であり、本記事の記載は2016年4月6日である

6
3
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
6
3