简体   繁体   English

Android sdk经理没有开通

[英]Android sdk manager not opening

My sdk manager is not opening..when i try to open it from within eclipse it displays : 我的sdk经理没有打开..当我尝试从eclipse中打开它时显示:

[2014-02-01 17:37:06 - SDK Manager] [SDK Manager] 'xcopy' is not recognized as an internal or external command, [2014-02-01 17:37:06 - SDK Manager] [SDK Manager] operable program or batch file. [2014-02-01 17:37:06 - SDK Manager] [SDK Manager]'xcopy'无法识别为内部或外部命令,[2014-02-01 17:37:06 - SDK Manager] [SDK Manager ]可操作程序或批处理文件。

I had a problem opening eclipse itself but i solved it .. the problem was that sdk was searching for jre in the android sdk (eclipse) folder itself but it was in C:\\program files\\java\\jre7 .So i copyed jre7 from there to eclipse folder and renamed it to jre..and eclipse started working....BUT THE SDK MANAGER DOES NOT START IT JUST FLASES FOR a sec. 我有一个问题打开eclipse本身但我解决了..问题是sdk在android sdk(eclipse)文件夹本身搜索jre但它在C:\\ program files \\ java \\ jre7。所以我从jre7复制了jre7那里有eclipse文件夹并将其重命名为jre..and eclipse开始工作....但SDK管理器并没有启动它只是一秒钟的浪费。

 Open sdk/tools/android.bat in notepad

 set java.exe path in android.bat file

 your java.exe path like that 

 set java_exe="C:\Program Files (x86)\Java\jre6\bin\java.exe" in android.bat file

Follow these steps and it help for me after a long time with all ways above not effect on windows7 64-bits, no need to have JAVA_HOME system variable or edit android.bat 按照以下步骤操作,经过很长一段时间以后对我有所帮助,以上所有方式对windows7 64位没有影响,无需使用JAVA_HOME系统变量或编辑android.bat

  1. Download Android Studio within Android SDK, Java JDK 64 bits and Java JRE x86 在Android SDK,Java JDK 64位和Java JRE x86中下载Android Studio

  2. Install Java JRE first, then install Java JDK 64 bits, and the Android Studio last. 首先安装Java JRE,然后安装Java JDK 64位,最后安装Android Studio。

  3. Now you start Android Studio first (64 bits version) it require to have JAVA_HOME setting to run JVM, just copy the jdk.xxx(version) folder (my PC: jdk1.8.0_25 from "C:\\Program Files\\Java\\")folder to Android Studio folder and rename that folder (in Android Studio) to "jre" (jdk1.8.0_25 -> jre). 现在你首先启动Android Studio(64位版本),它需要JAVA_HOME设置来运行JVM,只需复制jdk.xxx(版本)文件夹(我的PC:jdk1.8.0_25来自“C:\\ Program Files \\ Java \\” )文件夹到Android Studio文件夹并将该文件夹(在Android Studio中)重命名为“jre”(jdk1.8.0_25 - > jre)。

  4. Now it work for me to open Android SDK Manager from anywhere, if you want to use eclipse (not official now) just copy the java jre.xxx(version) x86 folder (from where you install before) to Eclipse and rename to "jre". 现在我可以从任何地方打开Android SDK Manager,如果你想使用eclipse(现在不是官方版),只需将java jre.xxx(version)x86文件夹(从之前安装的地方)复制到Eclipse并重命名为“jre” ”。 After coping, choose the Android SDK path in Eclipse to use, It works for both Android Studio and Eclipse. 应对后,选择要使用的Eclipse中的Android SDK路径,它适用于Android Studio和Eclipse。

  5. Mind your antivirus if still refusing you (remove antivirus and install after you sure it not cause problem)! 如果仍然拒绝你,请记住您的防病毒软件(删除防病毒并在确定它不会导致问题后安装)!

1)go to sdk-tool-android.bat file and open it by right click then edit and then set java_exe path.Yo have to set path as in step 2 1)转到sdk-tool-android.bat文件并右键单击然后编辑打开它然后设置java_exe path.Yo必须设置路径,如步骤2

2)set java_exe=C:\\Program Files\\Java\\jre7\\bin\\java.exe Location of your JRE may vary as might installed in other location 2)设置java_exe = C:\\ Program Files \\ Java \\ jre7 \\ bin \\ java.exe JRE的位置可能会因安装在其他位置而异

3)After doing this Run Android studio as administrator and also run your Eclipse as administrator 3)执行此操作后,以管理员身份运行Android工作室,并以管理员身份运行Eclipse

Then Have Fun.. 然后玩得开心..

If you face an "xcopy" problem please try running sdk/tools/android.bat as admin. 如果您遇到“xcopy”问题,请尝试以管理员身份运行sdk / tools / android.bat。 If it still happens this may mean that there is a problem with proper reading of a relative path in the batch, and in order to solve it you can amend one line of the batch from "xcopy %swt_path% %tmp_dir%\\%swt_path% /I /E /C /G /R /Y /Q > nul" to "C:\\Windows\\System32\\xcopy %swt_path% %tmp_dir%\\%swt_path% /I /E /C /G /R /Y /Q > nul" 如果它仍然发生这可能意味着正确读取批次中的相对路径存在问题,并且为了解决它,您可以从“xcopy%swt_path %% tmp_dir%\\%swt_path%”修改批次的一行/ I / E / C / G / R / Y / Q> nul“to”C:\\ Windows \\ System32 \\ xcopy%\\ twt_path %% tmp_dir%\\%\\ t swt_path%/ I / E / C / G / R / Y / Q> nul“

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM