Bytes. That is, install androidsdk first.
, Go to the decompressed path and run the android API version./Android upgrade under the tools directory. After eclipse is installed and ADT is installed, it will not be recognized when adding the path. Therefore, the best installation sequence is:
1. Install JDK
2. Install eclipse
3. Install the ADT plug-in. It is best to install the plug-in online (for online installation, help -- install new software, and then add the URL:
https://dl-ssl.google.com/android/eclipse/
If HTTPS cannot be changed to HTTP, the rest will not change)
[Note: in fact, you do not need to install it online. After downloading it, copy the compressed file to the eclipse folder and decompress it directly by unzip xxx.zip. The decompressed pluggin folder will be automatically overwritten for installation. It is easier than online installation.
In addition, the original adt18.0.0 version is no longer available, the latest version is 22.0.1, download link: http://developer.android.com/sdk/installing/installing-adt.html]
4. Run eclipse and click Android SDK manager in the window to download the android API.
In the pop-up SDK Manager dialog box, install the three options in the Tools Folder. I just did not install the last option for the first time, probably build tools. As a result, the newly created Android program says that r cannot be found.
5. Install CDT (if you want to create a C ++ Project)
6. Click Help -- install new software in eclipse to install ndk online (if you need to compile local C ++ code into a library)
The following message is displayed: all operations are performed after Su as the root user. If you log on as a non-root user and follow the instructions to download the android SDK, it is often unsuccessful.
This is also a very tangled problem for me. Every time I open eclipse, CD is used .. /.. /Enter the corresponding directory, and then./eclipse. Do you have a solution ??? Although icons have been created in the previous article, do not create icons before you create an android development environment. That is, you must build an android development environment with the same permissions.
If you create an icon and start eclipse on the desktop at this time, you will find that the ADT is not installed, and there is no Android SDK, that is, the contents installed by the root user are gone, grandma's! The problem of egg pain will be solved later!
Note: Google's latest ADT bundle contains the eclipse adt sdk. Install it directly. It is worth mentioning that now it is easier to build an android development environment, Google provides an ADT bundle thing, link in this: http://developer.android.com/sdk/index.html
With a single download, the ADT bundleincludes everything you need to begin developing apps:
- Eclipse + ADT plugin
- Android SDK tools
- Android platform-Tools
- The latest Android platform
- The latest Android system image for the emulator
That is to say, an ADT bundle contains eclipse, Adt, Android SDK... and so on, so you can download this package and decompress it directly, even with eclispe.Just install JDK + ADT bundle.