简体   繁体   English

我无法打开我的Android SDK管理器

[英]I can not open my Android SDK Manager

When i start my Android SDK Manager it throws this error 当我启动Android SDK Manager时会引发此错误

[SDK Manager] 'D:\PhanMem\PH9D61~1\Android\ADT-BU~1\sdk\tools\lib\\find_java.exe -s' is not recognized as an internal or external command,

[SDK Manager] operable program or batch file.

I use Windows 7 23 bit, i can not open my SDK so i don't know which version . 我使用Windows 7 23位,无法打开我的SDK,所以我不知道哪个版本。 How can I fix this error? 如何解决此错误?

As you are using Windows system, use following way to set your JAVA_HOME and CLASSPATH Environment variables. 在使用Windows系统时,请使用以下方法来设置JAVA_HOMECLASSPATH环境变量。

Windows XP Windows XP

Select Start, select Control Panel. 选择开始,选择控制面板。 double click System, and select the Advanced tab. 双击系统,然后选择高级选项卡。 Click Environment Variables. 单击环境变量。 In the section System Variables, find the PATH environment variable and select it. 在“系统变量”部分中,找到PATH环境变量并选择它。 Click Edit. 单击编辑。 If the PATH environment variable does not exist, click New. 如果PATH环境变量不存在,请单击“新建”。 In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. 在“编辑系统变量(或新系统变量)”窗口中,指定PATH环境变量的值。 Click OK. 单击确定。 Close all remaining windows by clicking OK. 单击确定关闭所有剩余的窗口。

Windows Vista: Windows Vista:

From the desktop, right click the My Computer icon. 在桌面上,右键单击“我的电脑”图标。 Choose Properties from the context menu. 从上下文菜单中选择“属性”。 Click the Advanced tab (Advanced system settings link in Vista). 单击“高级”选项卡(在Vista中为“高级系统设置”链接)。 Click Environment Variables. 单击环境变量。 In the section System Variables, find the PATH environment variable and select it. 在“系统变量”部分中,找到PATH环境变量并选择它。 Click Edit. 单击编辑。 If the PATH environment variable does not exist, click New. 如果PATH环境变量不存在,请单击“新建”。 In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. 在“编辑系统变量(或新系统变量)”窗口中,指定PATH环境变量的值。 Click OK. 单击确定。 Close all remaining windows by clicking OK. 单击确定关闭所有剩余的窗口。

Windows 7 Windows 7的

From the desktop, right click the Computer icon. 在桌面上,右键单击“计算机”图标。 Choose Properties from the context menu. 从上下文菜单中选择“属性”。 Click the Advanced system settings link. 单击高级系统设置链接。 Click Environment Variables. 单击环境变量。 In the section System Variables, find the PATH environment variable and select it. 在“系统变量”部分中,找到PATH环境变量并选择它。 Click Edit. 单击编辑。 If the PATH environment variable does not exist, click New. 如果PATH环境变量不存在,请单击“新建”。 In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. 在“编辑系统变量(或新系统变量)”窗口中,指定PATH环境变量的值。 Click OK. 单击确定。 Close all remaining windows by clicking OK. 单击确定关闭所有剩余的窗口。

Now in Addition for the Linux Based System following steps used to set JAVA_HOME and CLASSPATH variables: 现在除了基于Linux的系统外,还可以使用以下步骤来设置JAVA_HOME和CLASSPATH变量:

Open root folder From the View Menu , ticK "Show Hidden Files" , or press Ctrl + H. Now you can see a system hidden file called .bashrc Right click and open it editor, and write following command at the end. 打开根文件夹在“查看菜单”中,打勾ticK“显示隐藏的文件”,或按Ctrl +H。现在您可以看到一个名为.bashrc的系统隐藏文件,右键单击并打开它的编辑器,并在末尾编写以下命令。

PATH=$PATH:/opt/jdk1.6.0_21/bin 
export PATH
JAVA_HOME=/opt/jdk1.6.0_21
export JAVA_HOME
NDK_HOME=/opt/android-ndk-r8
export NDK_HOME 

Save and Exit. 保存并退出。

find your Android sdk path, mine is C:\\Program Files (x86)\\Android\\android-sdk ... you can find yours by going into eclipse --->Window-->Android ... the SDK location will be near the top assuming you have Android ADT installed already. 找到您的Android sdk路径,我的路径是C:\\ Program Files(x86)\\ Android \\ android-sdk ...您可以通过进入eclipse ---> Window-> Android ...找到您的SDK ...假设您已安装Android ADT,则在顶部附近。

so go to your SDK path and in there you will find SDK Manager.exe , just double click it to open it. 因此,转到您的SDK路径,然后在其中找到SDK Manager.exe,只需双击以将其打开。

You should start by saying which OS you are using ? 您应该先说一下正在使用哪个操作系统? And which version of the SDK you are using ? 您正在使用哪个版本的SDK?

For Windows, SDK Manager in the latest version (with eclipse) on should be in x\\sdk\\tools\\lib\\SDK Manager.exe 对于Windows,最新版本(带有Eclipse)的SDK Manager应该在x \\ sdk \\ tools \\ lib \\ SDK Manager.exe中。

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

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