Setting up Eclipse for Android Development and testing - java

As the title suggests, the issue I am having is in setting up Eclipse for Android Development and testing. There are two installations that need to be in sync. There is the ADT and there is the SDK. The problem I seem to be having stems from the fact that the latest version of the ADT is not compliant with what I need to do. I cannot use the ADT version 23. Instead, I need to use version 22.
The problem is in the fact that the SDK and the ADT have to be the same versions. How do I get and use version 22 of the SDK for android development for Eclipse?

clean out the ADT install features ( DDMS, traceview, etc ) by displaying Help installed features then hilite them and press the 'uninstall' button.
ANDROID ADT etc now cleaned out of eclipse.
download install from archive the following link:
dl.google.com/android/android-sdk_r22.6.2-linux.tgz
That will install correct SDK.
Then you have to add ADT to eclipse without it default to R 23 where you will get the 'incompatible ' message list......
I think this will help you with the last item on reverting ADT to R 22

Related

How to work with Eclipse adt for Android lollipop development

I only have 1GB memory for my computer, 256GB hard disk, I was not able to install Android Studio. I want to work with Eclipse to develop android apps for Android 5.0 or above. Please guide me how can I do so. It would be better if any links are provided for step-by-step tutorial regarding this matter.
I am using "adt-bundle-windows-x86_64-20140702". When I tried to setup eclipse with Android Marshmallow I got following error shown in Eclipse
"This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in".
Instead of using adt plugin whoes been updated last time in
Mon, 2016-11-07 14:20
and stop being supported before 22 API level
, you can look at Andmore: Development Tools for Android in eclipse marketplace, and been official eclipse project.
Github project of Andmore, but it's not even if 1.0v
But you will won't do anything with 1GB memory :/

New to programming, JDK bundled with Android Studio 2.2 Preview 1?

I'm new to programming and wanted to give the newest Android Studio a try on OSX as I'm getting started.
I went to:
https://sites.google.com/a/android.com/tools/download/studio/canary/latest/
where it said:
Please download a full IDE image linked below to ensure you have the
correct JDK bundled with the installation.
I downloaded the file and completed the install and now get a warning in Android Studio to:
Please choose a valid JDK directory.
There is a jdk subfolder in the Package Contents of the Android Studio program itself at:
Applications/Android Studio/Contents/jre/jdk
However, this doesn't seem to be what I'm looking for. I know you can download Java from Oracle's website, but I'm not sure if this is what I should be doing or not.
At first I thought the text from the install page linked above meant that the JDK was bundled in the Android Studio 2.2 Preview 1 installer, but now I'm thinking that is not the case.
If I do need to get a JDK for my Mac, which one do I use please? Otherwise, if a JDK came with Android Studio, how do I select the valid JDK directory?
Thanks in advance.
The Android tools install the SDK for Android, but you still need a JDK. Install this one for mac osx:
jdk-8u91-macosx-x64.dmg
on page:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Eclipse IDE is asking for update of ADT-Plugin

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.

Eclipse not creating new Activity and xml layout file (issues started after updating eclipse and sdk)

Today I have update Android SDK tools & eclipse. Current SDK tools 24.0.1, Android development Tools 23.0.4.1468518, eclipse version 4.4.1. After update SDK & eclipse I create new project. In this project src folder is empty & res/layout folder also empty, activity & xml files are not creating. I have to manually create it.
I seen my answers like Link 1, Link 2 etc.
Answer like:- "
Try this
"Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/"
But I have already update it.But not solve my problem. So, How to create activity & xml automatically?
Latest
As I already said that ADT 23.0.4 and SDK 24.0.1 are not compatible to each other.
We have got another update to of Android SDK to 24.0.2 (May be their team read our this question and released an update so quickly). However this update has not been documented yet on this page but still you will be able to see it in your Eclipse's SDK Manager.
I updated my SDK to 24.0.2 and now it is working fine. You too can try to update your Android SDK to 24.0.2 and hopefully everything will work fine.
Older Answer
The ADT Plugin for Eclipse and Android SDK both should be compatible to each other for making Eclipse do such things automatically.
But it seems like ADT 23.0.4 (Released in October 2014) and SDK Tools, Revision 24.0.1 (Released in December 2014) are not compatible to each other.
We should expect an update to ADT plugin soon which will be compatible with SDK tools 24.0.1.
You can check from the documentation:
For SDK Tools, Revision 23.0.4 (October 2014) they have mentioned the following points.
Android SDK Platform-tools revision 19 or later.
If you are developing in Eclipse with ADT, note that this version of SDK Tools is designed for use with ADT 23.0.4 and later.
If you notice,
But for SDK Tools, Revision 24.0.0 & 24.0.1 (December 2014), They have only mentioned
Android SDK Platform-tools revision 19 or later.
And if you check this document then you will find for SDK 23 or earlier with each revision the compatible ADT version was mentioned but only with 24 they have not mentioned anything yet. So the compatible version is yet to come.
I had same issue but in the end had to undo my update to SDK tool to back to 23.0.4.
If you want to undo your update you can follow the following simple steps:
Download the older ADT plugin manually.
Extract the contents and copy the tools folder from there.
Go to your SDK installation directory and replace the tools folder.
Your SDK will be back to 23 version and everything will start working again.
Try running your Android SDK Manager again, install any available updates for the Tools category and after that select Help > Check for Updates from the Eclipse menu (installing any detected updates here too which should then restart Eclipse).
I was getting the same problem before and it started working again after I have Android SDK Tools version 24.0.2 installed after the above process.
Try this: when creating a new android application use "Empty Activity" instead of "Blank Activity".
This will fix the problem immediately.
Sometimes you have to reinstall eclipse after it crashes. That's why it is a good idea they made it portable. But you can try to go back from the about eclipse uninstall component. But in my experience if you blew the ini and all that maybe the fastest way is to reinstall especially when there are so many dependencies like in adt.
You can also install regular eclipse and android plugin you don't have to use only adt. And maybe eclipse is more stable like that
Another thing you need to recompile the project probably

How to resolve this android buildtoolserror

I get this error
[2014-07-11 17:50:02 - App1] Using 1.7 requires using Android Build Tools version 19 or later; currently using 17.0.0
when i tried to use switch with strings (have to use jre version 1.7 to do this). I read on http://shuklaxyz.blogspot.com/2014/06/eclipse-error-using-17-requires-using.html that to fix this error, you have to put this line
sdk.buildtools=19.1
in your project.peoperties folder. I tried doing that but that didnt even work. I saw on the manifest that there nothing for build tools. Does anyone know a command i can use to resolve this problem?
You need to update your Android Build Tools to a later version. Unfortunately like a lot of things in the Android SDK it's not obvious how exactly you do this.
Open the Android SDK Manager
Under Tools, tick "Android SDK Build Tools 20" (or whatever the newest version is
Click Install Packages
Restart Eclipse

Categories

Resources