本文介绍了Android的安装/ SDK管理器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载android-sdk_r08-windows.zip和安装在c吧:当我尝试运行SDK管理器,它简单地弹出一个DOS窗口,然后关闭。试图运行的Adroid更新SDK导致空指针异常。我试图卸载/重新安装SDK为Android和Java的多次。这是Windows XP SP3。任何想法?

I have downloaded android-sdk_r08-windows.zip and installed it in c:. When I try to run the SDK Manager, it briefly pops up a DOS window then closes. Trying to run adroid update sdk results in a null pointer exception. I have tried uninstalling/reinstalling the SDK for both android and java multiple times. This is on windows XP SP3. Any ideas?

谢谢

约翰·

C:\ Android的SDK-窗口> Java的版本

C:\android-sdk-windows>java -version

Java版本1.6.0_23的Java(TM)SE运行时环境(建设1.6.0_23-B05)Java的热点(TM)客户端虚拟机(建设19.0 - B09,混合模式,共享)

java version "1.6.0_23"Java(TM) SE Runtime Environment (build 1.6.0_23-b05)Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

C:\ Android的SDK-窗口>工具\ android.bat更新SDK[信息]启动Android SDK和AVD管理没有命令行参数的设置,启动界面。见机器人--help'的命令行操作。显示java.lang.NullPointerException        在com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1155)        在com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1134)        在com.android.sdklib.internal.avd.AvdManager(AvdManager.java:376)        在com.android.sdkuilib.internal.repository.UpdaterData.initSdk(UpdaterData.java:230)        在com.android.sdkuilib.internal.repository.UpdaterData(UpdaterData.java:107)        在com.android.sdkuilib.internal.repository.UpdaterWindowImpl(UpdaterWindowImpl.java:86)        在com.android.sdkuilib.repository.UpdaterWindow(UpdaterWindow.java:54)        在com.android.sdkmanager.Main.showMainWindow(Main.java:297)        在com.android.sdkmanager.Main.doAction(Main.java:260)        在com.android.sdkmanager.Main.run(Main.java:99)        在com.android.sdkmanager.Main.main(Main.java:88)

C:\android-sdk-windows>tools\android.bat update sdk[INFO] Starting Android SDK and AVD ManagerNo command line parameters provided, launching UI.See 'android --help' for operations from the command line.java.lang.NullPointerException at com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1155) at com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1134) at com.android.sdklib.internal.avd.AvdManager.(AvdManager.java:376) at com.android.sdkuilib.internal.repository.UpdaterData.initSdk(UpdaterData.java:230) at com.android.sdkuilib.internal.repository.UpdaterData.(UpdaterData.java:107) at com.android.sdkuilib.internal.repository.UpdaterWindowImpl.(UpdaterWindowImpl.java:86) at com.android.sdkuilib.repository.UpdaterWindow.(UpdaterWindow.java:54) at com.android.sdkmanager.Main.showMainWindow(Main.java:297) at com.android.sdkmanager.Main.doAction(Main.java:260) at com.android.sdkmanager.Main.run(Main.java:99) at com.android.sdkmanager.Main.main(Main.java:88)

推荐答案

显然,我的系统具有剩余.android文件夹从我的Andr​​oid SDK在一年前打得四处乱丢。重命名该文件导致SDK管理器来了。

Apparently my system had a residual .android folder lying around from when I played around with the android SDK over a year ago. Renaming that file resulted in the SDK Manager coming up.

这篇关于Android的安装/ SDK管理器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 04:08