简体   繁体   English

Android SDK入门

[英]Android SDK getting started

Just trying to get started. 只是想开始。 I followed the Google instructions and “Download the SDK ADT Bundle for Windows”. 我按照Google的说明和“下载Windows的SDK ADT捆绑包”进行操作。 I then followed the next step Install the SDK and Eclipse IDE 然后,我按照下一步Install the SDK and Eclipse IDE

  • Unpack the ZIP file (named adt-bundle-.zip) and save it to an appropriate location, such as a "Development" directory in your home directory. 解压缩ZIP文件(名为adt-bundle-.zip)并将其保存到适当的位置,例如主目录中的“开发”目录。
  • Open the adt-bundle-/eclipse/ directory and launch eclipse. 打开adt-bundle- / eclipse /目录并启动eclipse。

When I open the files and try to launch eclipse I get an error: A JRE or JDK must be available for eclipse to run. 当我打开文件并尝试启动eclipse时,出现错误:必须有JRE或JDK才能运行eclipse。 I have reloaded the Java runtime with no success. 我没有成功加载Java运行时。 Could someone give me a hand? 有人可以帮我吗?

Download JDK from here : http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html 从此处下载JDK: http : //www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

To configure it, follow these steps - In the system variables, make a new variable, called it JAVA_HOME, and set the value to: C:\\Program Files\\Java\\jdk1.7.0_17. 要配置它,请按照下列步骤操作-在系统变量中,创建一个名为JAVA_HOME的新变量,并将其值设置为:C:\\ Program Files \\ Java \\ jdk1.7.0_17。 After that, edit Path, which is also in the system variables and add : ;%JAVA_HOME%\\bin. 之后,编辑路径(也位于系统变量中)并添加:;%JAVA_HOME%\\ bin。 If you don't how to do this, follow these steps : Follow these steps: 如果您不执行此操作,请按照下列步骤操作:请按照下列步骤操作:

Open my Computer. 打开我的电脑。

Go to program files - x86 (if applicable) Find "java" 转到程序文件-x86(如果适用),找到“ java”

Open it and select jre (your number) 打开它,然后选择jre(您的号码)

Select bin. 选择垃圾箱。

Click the bar up the top, You should see something like this: C:\\Program Files (x86)\\Java\\jre7\\bin 单击顶部的栏,您应该看到类似以下内容:C:\\ Program Files(x86)\\ Java \\ jre7 \\ bin

Paste that into notepad, as you need it soon! 尽快将其粘贴到记事本中!

Open the start Menu. 打开开始菜单。

Right click Computer. 右键单击计算机。

Select Properties. 选择属性。

Click "Advanced System Settings" 点击“高级系统设置”

Click "Environment Variables" 点击“环境变量”

You'll see two Boxes (if not close and follow the instructions again) in the top one Select "New..." 您会在顶部看到两个方框(如果未关闭,请再次按照说明进行操作)。选择“新建...”

in Variable Name type "PATH" (it must be PATH and not PaTh/Path/pATH.. etc) 在变量名中键入“ PATH”(它必须是PATH,而不是PaTh / Path / pATH ..等)

In Variable Value, get that thing in Notepad you Pasted in and paste it there. 在“变量值”中,将其粘贴到记事本中,然后粘贴到此处。 Press "OK" Press "Apply" 按“确定”按“应用”

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

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