创建自定义硬件配置文件(AVD)时出现NullPointerException

时间:2015-01-10 20:34:49

标签: command-line nullpointerexception avd

我尝试从命令行创建自定义硬件配置文件,但收到此错误。我可以在AVD管理器中执行此操作,但是我错过了继续操作所需的选项吗?

C:\Users\tmcfarlin>android create avd -n my_android_21 -t 11 -b armeabi-v7a
Android 5.0.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]yes

Exception in thread "main" java.lang.NullPointerException
    at com.android.sdkmanager.Main.promptForHardware(Main.java:1682)
    at com.android.sdkmanager.Main.createAvd(Main.java:1447)
    at com.android.sdkmanager.Main.doAction(Main.java:336)
    at com.android.sdkmanager.Main.run(Main.java:150)
    at com.android.sdkmanager.Main.main(Main.java:116)

0 个答案:

没有答案