Build an Android development environment.

Source: Internet
Author: User

1. Download ADK from http://developer.android.com/intl/zh-cn/sdk/index.html
2. Click SDK.Manager.exe, encounter the problem of Flash back, at first thought it was a firewall problem, a variety of flexible walls, novice rookie hurt Ah ... Baidu found a positive solution: http://www.cnblogs.com/badtree/articles/2941132.html
the SDK Manager for Android cannot start a flash-back solution

Go from  http://hi.baidu.com/yangw80/item/7be029ebdb33390f65db0014

"Fault description"

The Android SDK will be downloaded for Android development, and the SDK Manager.exe will not start, flash through.

Attempts to reload the JDK, download the Android SDK from the official website, add environment variables, and so on are not valid.

And, some versions are fine, and some versions are not. The downloaded Android-sdk_r14 can perform the SDK Manager.exe normally, but the android-sdk_r18 cannot execute, and a flash will exit.

 

"The problem is the

SDK Manager.exe to confirm the Java.exe path by calling Android-sdk-windows\tools\lib\find_java.bat.

Enable cmd.exe, command line switch path to Android-sdk-windows\tools\lib, execute find_java.bat, see output:

C:\Windows\system32\ Java.exe

Although there is java.exe under this path, this is not the installation path for the JRE. It is estimated that some Java-required software, when installed, Java.exe, Javaw.exe, Javaws.exe copied to the C:\Windows\System32, resulting in the SDK Manager.exe called the wrong location Java.exe caused 。

 

"Workaround"

Know the problem, it is easy to solve, delete C:\Windows\system32\ under the Java.exe, Javaw.exe, Javaws.exe can be resolved. If you are not at ease, you can go to cmd and switch path execution find_java.bat check, output: C:\Program files\java\jre7\bin\java.exe is no problem.

3. If the steps of the great God Run Find_java.bat are told:

F:\************************\sdk\tools\lib>find_java.bat

ERROR: No suitable Java found. In order to properly use the Android Developer

Tools, you need a suitable version of the Java JDK installed on your system.

We recommend you install the JDK version of Javase, available here:

Http://www.oracle.com/technetwork/java/javase/downloads

If you already has Java installed, you can define the Java_home environment

Variable in Control panel/system/avanced System Settings

JDK folder.

You can find the complete Android SDK requirements here:

Http://developer.android.com/sdk/requirements.html

4. Then Baidu, learned that the Run command can check the Java version is correct:

c:************>java-version ' Java ' is not an internal or external command, nor is it a running program or batch file.
5. Baidu/Googler again, good real SB, have installed JDK or JRE, small white is really small white ... ~~~~~~~~~~~
about what is JDK and Jre:http://stackoverflow.com/questions/1906445/what-is-the-difference-between-jdk-and-jre

JRE: Java Runtime environment. It is basically the Java Vsan where your Java programs run on. It also includes browser plugins for Applet execution.

JDK: It's The full featured software development Kit for Java, including JRE, and the compilers and tool S (like JavaDoc, and Java Debugger) to create and compile programs.

Usually, when you have care about running Java programs on your browser or computer you'll only install the JRE. It ' s all need. On the other hand, if your is planning to does some Java programming, you'll also need JDK.

Sometimes, even though you is not planning to does any Java development on a computer, you still need the JDK Inst Alled. For example, if is deploying a WebApp with JSPs, you are technically justrunning Java progr AMS inside the application server. Why would your need JDK then? Because Application Server would convert JSP into servlets and use JDK to compile the servlets. I am sure there might is more examples.

6. According to the above information, it appears that the JDK has been installed, OK, I admit that I had this thing 7 years ago, but now it's all back to the Java tutor.
DownLoad jdk Page:http://www.oracle.com/technetwork/java/javase/downloads/index.htmlDownLoad JDK Link:http://download.oracle.com/otn-pub/java/jdk/8u25-b18/jdk-8u25-windows-x64.exe start installation after download
7. Ctrl + R, run java-version again as shown below:
C:************>java-versionjava Version "1.8.0_25" Java (TM) SE Runtime Environment (build 1.8.0_25-b18) Java Hots Pot (TM) 64-bit Server VM (build 25.25-b02, mixed mode)
8. Once again run the SDK Manager.exe,ui finally come out, OK, now start to select the checkbox, study book "First line of code, Android" Turing series, Guo Lin
9. After the API download is complete, start installing Eclipse, double-click Eclipse.exe, and then select the workspace path. 10. You should now be able to start Hello word! Grinning 11. Create Android Emulator and click android Virtual Device manager,create one device,setting the items
12. After the simulator loaded the effect, the simulation boot time is a bit long, patient wait.

Build an Android development environment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.