How to fix the Android AVD no target problem
2012-01-12 11:17
204 查看
How to fix the Android AVD no target problem
Copyright © TechPad.co.uk
If you're getting started with the Android SDK and encounter an error message which says "Error: Target id is not valid. Use 'android list targets' to get the target ids'" here's how to solve it...
While you're developing an Android application you'll need to create an Android Virtual Device or AVD, which allows you to test your application before you let it loose on a real 'phone.
The docs tell you to run the following command: android create avd --target 2 --name my_avd However, this gave me the following error "Error: Target id is not valid. Use 'android list targets' to get the target ids."
Running android list targets listed no available targets. This is because the SDK needs some further set-up work to tell it to fetch sources before you can use it.
To get around this problem type android in your terminal. Then click Available sources > check the box and click install selected. It will then go off and download all of the SDK packages via an https repository server at google.com/android.
Now re-run android create avd --target 2 --name my_avd and it should allow you to create the AVD and map it to a target.
====
http://techpad.co.uk/content.php?sid=96
相关文章推荐
- How to fix the problem that the Download rate is too Slow when doing "apt-get install"
- How to fix the adb no permissions error on Ubuntu Lucid
- 使用Eclipse开发Android报错:Project has no target set. Edit the project properties to set one.
- How to fix no public key available for the following key IDs in debian
- How to fix the problem 'Your CPU supports instructions that this TensorFlow binary was not compiled'
- How to fix the issue "A problem has been encountered while loading the setup components. Canceling setup"?
- how to fix the problem when you install matlab on *nix-- "libXp.so.6 : cannot open "
- how to fix the problem when you install matlab on *nix-- "libXp.so.6 : cannot open "
- How to fix the problem of " Session Lost "
- How to fix the problem of executing gitenv.csh file failed
- How to Fix the Problem "Could not get lock /var/lib/dpkg/lock"
- how to fix the assembly problem when project A call project B as reference
- How to fix the python problem 'xxx() takes exactly one argument'
- 使用Eclipse开发Android报错:Project has no target set. Edit the project properties to set one.
- How to fix the vtkCamera inverted y axis
- Android build error "No rule to make target"
- How do I fix the GPG error “NO_PUBKEY”?
- 安装ARM EABI v7a System Image后 Android AVD还会出现"No system images installed for this target"
- Jmeter性能测试NoHttpResponseException (the target server failed to respond)
- [quote] How to determine what target is given in Makefile from the make command-line?