我无法从eclipse启动SDK Manager,收到以下错误。
[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应用程序并在我的设备上运行它,但不是模拟器。
答案 0 :(得分:0)
首先检查32位或64位DOWNLOAD
android.bat中的查找REFER
for /f %%a in ('%java_exe% -jar %frameworkdir%archquery.jar') do set swt_path=%frameworkdir%%%a
替换为
set swt_path=lib\x86
答案 1 :(得分:0)
答案 2 :(得分:0)
现在为时已晚,但对于仍无法解决此问题的人可能会有所帮助,请按照这些步骤进行操作,经过很长一段时间后,这对我有所帮助,以上所有方式都不会对Windows7 64位产生影响,无需拥有JAVA_HOME系统变量或编辑android.bat
在Android SDK中下载Android Studio,Java JDK 64位和Java JRE x86
首先安装Java JRE,然后安装Java JDK 64位,最后安装Android Studio。
现在你首先启动Android Studio(64位版本),它需要JAVA_HOME设置才能运行JVM,只需复制jdk.xxx(版本)文件夹(我的电脑:jdk1.8.0_25来自&#34; C:\ Program Files \ Java \&#34;)文件夹到Android Studio文件夹,并将该文件夹(在Android Studio中)重命名为&#34; jre&#34; (jdk1.8.0_25 - &gt; jre)。
现在我可以从任何地方打开Android SDK Manager,如果你想使用eclipse(现在不是官方版),只需复制java jre.xxx(version)x86文件夹(从之前安装的地方)到Eclipse并重命名为&#34; jre&#34;。应对后,选择要使用的Eclipse中的Android SDK路径,它适用于Android Studio和Eclipse。
如果仍然拒绝您,请注意您的防病毒软件(删除防病毒程序并在确定它不会导致问题后安装)!
希望对你有所帮助。