So I am trying to create an apk via eclipse for a small app I created (one of my first) but after going through several tutorials I can't find the android option which is suppose to present in Export. My Eclipse version is Mars.2 Release (4.5.2). I am using Eclipse IDE for Java Developers.
You have to install the sdk first. It's not included in eclipse.
How to setup eclipse for android app development
A personal recommendation:
Use Android Studio, you will have to get used to it but after 3 months I prefer it over eclipse. Also you should consider it since google stopped supporting Eclipse. android studio is the official android IDE
Related
I just downloaded java JDK 8 and set the environment variables for JDK and JRE, downloaded android SDK extracted them directly to C: (there were no platform tools so I used the command line to download them) and also set the environment variables. And I downloaded eclipse oxygen and I installed new software for ADT Plugin. When I set preferences I referred to the SDK folder and hit apply but nothing seems to happen like no SDK targets are listed. Hhuhuhuhuhuhuhu T^T I have deleted everything from Java, SDK, eclipse and downloaded them all again while disabling my antivirus but that didn't fix it. I also cant open my Android SDK Manager using eclipse, like it shows that it's loading but after that nothing happens even if I wait for 10 mins nothing shows up on screen, not even the command line that seems to just flash briefly which is what most people are having problems with when I search google. Can someone please tell me what to do?? I'm mainly using eclipse for android projects in school
By the end of 2015, Google ended the development and official support for the Android Developer Tools (ADT) in Eclipse.
As stated by Google, every app development project should be migrated to Android Studio.
So you should migrate your eclipse project to android studio.
I am using Eclipse Ide for android development. As I updated Android SDK tool to its newer version 24.1.2, Now Eclipse is showing an error that "This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in". I've checked update for ADT-Plugin several times but eclipse shows a popup with message "No Updates were found". what can i do?
You can manually download Eclipse ADT plugin from Android, and then install it in Eclipse by importing downloaded zip into eclipse.
Complete procedure with steps can be found on this link
http://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting
Update:
By the way, above link will provide you ADT-23.0.6.zip not 24.1.2
There is a note on above link
Note: If you have been using Eclipse with ADT, be aware that Android
Studio is now the official IDE for Android, so you should migrate to
Android Studio to receive all the latest IDE updates. For help moving
projects, see Migrating to Android Studio.
Update 2
Install ADT-23.0.6.zip, and it will work for SDK Tools r24.1.2.
http://developer.android.com/tools/sdk/eclipse-adt.html
This version of ADT is designed for use with SDK Tools r24.1.2. If you
haven't already installed SDK Tools r24.1.2 into your SDK, use the
Android SDK Manager to do so.
I have used Eclipse in the past for different projects, most lately OpenOffice plugin development. I want to start developing apps for devices running Android, so I downloaded the Android Developer Studio (ADS). I see that it's obviously an independent distribution of Eclipse, and that's OK, but I would prefer to use only one Eclipse to write all my Java, etc. applications.
What are the preferred use guidelines to only use either one of the IDEs for both Android development and other Java development?
You can download the Android SDK and plug it into your existing version of Eclipse. Before Android Development Studio I did this and it worked fine.
http://developer.android.com/sdk/installing/installing-adt.html
And here is a good tutorial for setting up Android SDK on an existing Eclipse:
http://www.ryanchapin.com/fv-b-4-740/Setting-Up-Android-SDK-and-Plugin-in-an-Existing-Install-of-Eclipse.html
If you are new to Android and want to start Android Development I suggest that you use Android Studio. It is an IDE that is based on IntelliJ IDEA. You can either download the Android Studio IDE or download the IntelliJ IDEA and use the Android Plugin.
Eclipse is not recommended any more because Android Studio is the new offical IDE.
You want to develop Java and Android using one IDE. So I recommend that you use the IntelliJ IDEA with the Android Plugin.
It is also useful to read the FAQ of JetBrains about Android Studio.
I am almost confused about these versions of Eclipse. There are indigo and Kepler which can be downloaded from Eclipse website. Another thing is, when I download the ADT inside its folder there is another executable file for Eclipse that when you execute it, a different logo than the previously mentioned versions appears with title Android Development Tools, is it also another version of Eclipse?
which one should I use? Or it is all about user preference?
You do not have to download Eclipse and Android SDK separately.Simply download the ADT bundle. It will have Eclipse, Android SDK, SDK manager to download APIs for various versions of android, USB driver etc. it will also have tools like adb. You can use it to start, stop server, view devices etc.
You should download the adt bundle, that comes bundled with the recomended version of eclipse. Just google that. It has support for all android needs.
Use the eclipse that comes with it, since it has all the needed plugins for developing for android.
The link to the ADT of the previous answer contains eclipse already.
I am using the ADT as well, but there is also an early access tool, called Android Studio, maybe this is more to your taste?
http://developer.android.com/sdk/installing/studio.html
Can we use Android studio for AOSP(Android Open Source Project) development, is there a way to do it. I didnt find one. anybody got any idea on this please ?
You can use Android Studio as a IDE for AOSP, since it's just a modified version of InteliJ's IDE.
from AOSP root:
make idegen && development/tools/idegen/idegen.sh
Then just "Open Project" in Android Studio and select the android.ipr it generated.
To import AOSP source in Android Studio or Eclipse, follow the full instructions here :
https://android.googlesource.com/platform/development/+/master/tools/idegen/README
What Pedlar suggested above is one way of doing it. I ran into lot of Jar dependency issues when I tried it with IDEA community edition (Android Studio is a fork of IDEA IDE). The IDE keeps prompting you about duplicate jars etc. The generated project includes framework Java sources as well as App sources. I tried to build an App project which resulted in broken AOSP build. IMHO, IDEA is a great IDE for Java development. But didn't work well with AOSP.
What worked for me is using eclipse to browse/edit/debug framework sources, but build the code from a terminal window. To avoid AOSP build breaks, please create a shadow dir of AOSP (i.e. lndir of AOSP) and use shadow dir for eclipse project.
This is explained at Using eclipse to browse/edit AOSP link in step by step.
If you are working on AOSP, you might want to check Debugging Android framework services.