我无法从 Eclipse 启动 SDK 管理器,出现以下错误。
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] Usage: java [-options] class [args...]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] (to execute a class)
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] or java [-options] -jar jarfile [args...]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] (to execute a jar file)
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] where options include:
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -d32 use a 32-bit data model if available
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -d64 use a 64-bit data model if available
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -server to select the "server" VM
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -hotspot is a synonym for the "server" VM [deprecated]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] The default VM is server.
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -cp <class search path of directories and zip/jar files>
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -classpath <class search path of directories and zip/jar files>
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] A ; separated list of directories, JAR archives,
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] and ZIP archives to search for class files.
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -D<name>=<value>
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] set a system property
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -verbose:[class|gc|jni]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] enable verbose output
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -version print product version and exit
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -version:<value>
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] require the specified version to run
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -showversion print product version and continue
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -jre-restrict-search | -no-jre-restrict-search
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] include/exclude user private JREs in the version search
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -? -help print this help message
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -X print help on non-standard options
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -ea[:<packagename>...|:<classname>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -enableassertions[:<packagename>...|:<classname>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] enable assertions with specified granularity
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -da[:<packagename>...|:<classname>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -disableassertions[:<packagename>...|:<classname>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] disable assertions with specified granularity
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -esa | -enablesystemassertions
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] enable system assertions
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -dsa | -disablesystemassertions
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] disable system assertions
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -agentlib:<libname>[=<options>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] load native agent library <libname>, e.g. -agentlib:hprof
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] see also, -agentlib:jdwp=help and -agentlib:hprof=help
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -agentpath:<pathname>[=<options>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] load native agent library by full pathname
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -javaagent:<jarpath>[=<options>]
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] load Java programming language agent, see java.lang.instrument
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] -splash:<imagepath>
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] show splash screen with specified image
[2013-07-17 15:41:31 - SDK Manager] [SDK Manager] See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
最初我收到以下错误
[2013-07-17 15:46:01 - SDK Manager] [SDK Manager] Error: Unable to access jarfile lib\archquery.jar
[2013-07-17 15:46:01 - SDK Manager] [SDK Manager] Invalid path
我替换了下面的行
for /f %%a in ('%java_exe% -jar lib\archquery.jar') do set swt_path=lib\%%a
和
set swt_path=lib\x86_64
现在我最终在控制台窗口中收到第一条消息。我从命令提示符运行 android.bat 文件并安装了所有工具。我能够创建一个 android 应用程序并在我的设备上运行它,但不能在模拟器上运行。