I am new to eclipse. I have a old application that is compatible for 2.2 android version. Basically this application display google map using Map View. I just want to make some text changes in this application for deployment. But i'm having issue while debug. It get crashed. Here is error window
Experiencing a similar situation from time to time I have to have the following for the old project:
Eclipse Luna (no other eclipse works)
Old version of Android SDK (update it to far and nothing works)
The quirks of my situation may be specific to my project but maybe they'll help. Android + Eclipse is not fun, convert to Android studio if you have the possibility:
https://developer.android.com/studio/intro/migrate.html
You first have to convert your project to Android studio and then fix your issues because some of the them will not work in Eclipse and might be some libraries are not supported in Eclipse.
See this how to Convert Eclipse project to Android Studio
See this link, it might be helpful for you.
Related
I'm trying to move from Eclipse ADT NDK build to Android Studio on my Mac OS X. In doing this, one thing I notice is the Project Structure's Android SDK Location for my ported project and for new projects is defaulting to be: /Users/user1/Development/adt-bundle-mac-x86_64-20131030/sdk.
Shouldn't the Android Studio come with its own SDK and shouldn't I be using it by default? I looked in the application install directory but found no signs of an SDK directory there. I'm concerned that the sdk is from October 30, 2013 and so it seems rather old. What are the implications of moving to a newer SDK?
Perhaps related to this is that when trying to use the old Eclipse Kepler that used to build for me:
I get notice on Eclipse launch:
This Android SDK requires Android Developer Toolkit version 23.0.0 or above.
Current version is 22.6.2.v2014032112031-1085508.
Please update ADT to the latest version.
Click "Check for Updates":
No Updates were found.
No Repository found at https://dl.google.com/alt.
Tried to update the repository to (for Kepler Eclipse):
https://dl.google.com/eclipse/plugin/4.3
Still no updates found but error about no repository goes away.
I resolved this later issue with the answer posted here.
cant comment on details of OSX but on linux/AS with Eclipse & AS , i found follow to help:
provision environment to use multiple versions of java JDK
install oracle JDK 1.7 that will be just for use by shell script running AS
note ASRoot/bin/studio.sh .... if [ -n "$STUDIO_JDK"
accordingly provide for the above ENV VAR and its use by the AS.studio.sh
that version of the JDK does nothing more than run AS
Then , for the ADT stuff (OK to be shared by Eclipse & AS ), you can keep updated another version of the SDK/ADT in a path where theres read access by both eclipse/ AS.
I think u can use ./android to keep updated this , original sdk/adt
I've tried to import my project from Eclipse to Android Studio, but I have not found the right way to do this. It is an app which has two versions, Full and Lite, and both are based on a library-project.
Migrating this to Android Studio and that Gradle-thing is a pain in the ... toe. I've read a bunch of documents, blogs and what-not to get this done, but I do not succeed. Also spent hours importing to Android Studio...
Is there actually any need to do this migration? Will the Eclipse ADT be updated in the future? I'm not going to read a bunch of documents about how Gradle works and spend hours trying to import my application to Android Studio if developing Android-application with Eclipse is an option.
Here are the steps you should follow according to Android Developer:
In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
Click Import Non-Android Studio project.
Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
In the following dialog, leave Use gradle wrapper selected and click OK. (You do not
need to specify the Gradle home.)
It's not necessary or even mandatory. But is it smart? Yes it is. Android Studio with Gradle and Maven are soooo powerful, that you are losing so much time using Eclipse.
Of course, you will have to pass all these painful steps, like we all did. What is Gradle? What is Maven? How do I import library? Where is my code? Why my Manifest does not work? And so on...
so I strongly advise you find a week of your time and learn new IDE by fixing all those things that will arise when you do conversion.
But in the end, you can still use Eclipse or IntelliJ IDEA the old way and leave learning to some other time.
I'm trying to set up Eclipse to develop for Android Wear by following this tutorial:
https://medium.com/#tangtungai/how-to-develop-and-package-android-wear-app-using-eclipse-ef1b34126a5d
I've made it to the step where one creates the new Android Wear Project and selects "Blank Wear Activity". On my setup, there is no "Blank Wear Activity" in the Create Activity dialog. It appears Eclipse is not finding the template to add to the list here.
I've tried this with Eclipse Luna downloaded from Eclipse.org, with ADT then installed via Eclipse's "Install New Software..." menu. I've also tried it on the pre-configured Eclipse Juno you can download from developer.android.com that has ADT pre-installed.
I can use the Android SDK manager to pull down the Android 4.4W platform stuff as well as Android Support Library and Google Support. I can find the wearable-1.0.0.aar and unpack it. I can import that project and all seems well. But I never wind up with the "Blank Wear Activity" template as an option. I've tried with and without installing the L Preview SDK.
All of this is on Ubuntu 14.04.
Since the latest ADT (23.0.2), there isn't any wizard to create wear activity.
So you can try to download this Black Activity For Android Wear and start from there.
https://github.com/tangtungai/Android-Wear-Black-Activity-Template
Hope this help.
The templates are provided by Android Studio, so you can't find it in SDK or your ADT.
You can find it in AndroidStudio/plugins/android/lib/templates/activities
Eclipse uses for its templates the folder <android-sdk-folder>/extras/templates/.
The language used is the same, but I don't know if they can works on Eclipse without changes.
So I am trying to run a google web application through eclipse, but when I run it gives me an error to please check for newest SDK version, which is 1.9.1. And sure enough Im working with 1.9.0, but I cant find any updates for GAE and it says all components are installed under help->install new software.
Ive tried downloading .zip file of 1.9.1 and extracting it to my eclipse\dropins dir but that doesnt do anything either. What do I do after Ive extracted it in to my dropins dir? And why cant I find the new version using eclipse own installation tool? Should I really be getting this error?
Try Eclipse Help -> Check for Updates instead. Sometimes the SDK detects a new version before Eclipse does, and everything synchronizes within a day or so. The SDK message is informational, not an error, so you can safely ignore it in the meantime.
In addition to what Martin suggested, you can download the SDK separately and unzip that in any separate folder. Then from your Eclipse Preferences, go to Google, App Engine SDK and select that particular version folder.
FYI - I prefer keeping the SDK versions separate from Eclipse. That way, I have the entire list of SDKs available in another folder structure and can use it across Eclipse versions too.
I recently started programming for Android using the Eclipse ADT. What I am frequently observing is, that when I open some Android .xml file (e.g. res/strings.xml or some res/layout/<...>.xml file) that there are NullPointerExceptions.
One can then still edit the file in source mode, but the convenient Resources-tab or the Layout-tab, resp., remain empty. That's especially happening when opening .xml files created by others. E.g. I downloaded and imported the eclipse project found here (http://www.designerandroid.com/?cat=4) and imported the downloaded eclipse project into Eclipse (Helios).
When I open the strings.xml file or any of the layout files, none of the special views (Resources or Layout, resp.) works! Are these ADT views really so brittle or is my setup somehow false or corrupted?
Michael
It is a defect of ADT. See here:
http://code.google.com/p/android/issues/detail?id=8173
I got the same problem when upgrading my WST to a newer version than the one ADT was using.
BTW, Helios is quite new for ADT. The official Android developer site recommends that you should stick with Eclipse 3.4 or 3.5 for now.