5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

android update コマンドのエラー

Last updated at Posted at 2014-03-26
$ android update project -p .
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.

みたいなエラーが出る場合。

暗に指定されている SDK が入っていない可能性が高いか、そもそもターゲットを指定が必須のパターンです。

まず、android コマンドで SDK Manager を起動し、API 17(べつに17じゃなくても良い)の SDK をインストールして、再度 update project コマンドを実行してみてください。

それでも上記のエラーになる場合は、--target android 17 のオプションを update コマンドの引数に与えてみてください。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?