简体   繁体   English

SDK Manager是否支持windows-8

[英]Will SDK Manager suppport for windows-8

Will SDK Manager support for windows-8. SDK Manager是否支持windows-8。 I installed the android sdk for Windows 8. But when I open the android sdk manager, a cmd-like screen just briefly flashes on for half a second then disappears. 我为Windows 8安装了android sdk。但是当我打开android sdk管理器时,一个类似cmd的屏幕只是短暂闪烁半秒然后消失。 I have no idea what's going on and how to get this thing working. 我不知道发生了什么以及如何让这件事发挥作用。

I am facing same problem on Windows 8.1. 我在Windows 8.1上面临同样的问题。 I saw following solution on internet: 我在网上看到以下解决方案:


Open /sdk/tools/android.bat file. 打开/sdk/tools/android.bat文件。 and change “set java_exe=” line to set java_exe="C:\\Program Files\\Java\\jre7\\bin\\java.exe" 并将“set java_exe =”行更改为set java_exe =“C:\\ Program Files \\ Java \\ jre7 \\ bin \\ java.exe”

Note: 注意:

The java.exe path could be different on your system. 您的系统上的java.exe路径可能有所不同。

But it didn't work in my case, try it on your side. 但它在我的情况下不起作用,尝试在你身边。 One thing strange is that if we run "/sdk/tools/android.bat" directly it works, but it does not run through "SDK Manager.exe" file. 有一点奇怪的是,如果我们直接运行“/sdk/tools/android.bat”它可以工作,但它不会运行“SDK Manager.exe”文件。

Any other person facing same problem and got any solution? 任何其他人面临同样的问题并得到任何解决方案?

Will SDK Manager support for windows-8 SDK Manager是否支持windows-8

Yes, it works perfectly in Windows 8 also. 是的,它也适用于Windows 8。

Follow below steps which worked for me :- 按照以下步骤对我有用: -

  1. Go to (sdk-folder)/tools folder (For me it is C:\\Users\\Ajay\\adt-bundle-windows-x86_64-20131030\\adt-bundle-windows-x86_64-20131030\\sdk\\tools) 转到(sdk-folder)/ tools文件夹(对我来说是C:\\ Users \\ Ajay \\ adt-bundle-windows-x86_64-20131030 \\ adt-bundle-windows-x86_64-20131030 \\ sdk \\ tools)

  2. Open the file android.bat in any text editor. 在任何文本编辑器中打开文件android.bat。

  3. Go to the line where set java_exe is located 转到set java_exe所在的行

  4. Set the Path of java.exe which is located in your JRE. 设置位于JRE中的java.exe的路径。 For ex : set java_exe="C:\\Program Files\\Java\\jre7\\bin\\java.exe" 例如: set java_exe="C:\\Program Files\\Java\\jre7\\bin\\java.exe"

  5. Save the file and try it again, now it should work ! 保存文件并再次尝试,现在它应该工作!

Match your Machin's Java bit system with your android SDK bit system, ie install a JDK x86 if you got android SDK x86. 将你的Machin的Java位系统与你的android SDK位系统相匹配,即如果你有android SDK x86就安装一个JDK x86。 And usually android SDK works fine with Java x86 versions. 通常android SDK可以与Java x86版本一起使用。

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

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