I installed ADT plugin to Eclipse 3.5. But at Window → Preferences Android node is not shown.
If you have the Subclipse plug-in also installed, then that could be keeping the ADT plug-in from working. They just don't seem to play well together. I created a second Eclipse installation for my Android work with ADT but without Subclipse. I use the other one for projects using Subclipse but not Android. Not ideal but good enough for the moment.
Ok, I solved this slightly differently.
I am running Eclipse 3.5 under Windows 7 x64. I used the zipped version of Eclipse and originally decompressed it to c:\program files\eclipse
I found the only way I could get the ADT plug-in to work was to move the eclipse folder to a folder location with no spaces eg c:\eclipse and then run it as an administrator.
After that I just re-installed the ADT plug-in and it works!
How did you install android?
Did you use the p2 'Install new software' as in:
like this tutorial?
See also this manual page, where you will see the update site address is the same, but the process depends on your eclipse version (for eclipse Galileo 3.5.x, the p2 mechanism is recommended)
A full reinstall of eclipse is better when in doubt (you do not even need to touch to your previous install: just unzip a new eclipse.zip somewhere): you can even reference your previous workspace (and plugins, if you have uncompressed them in a dedicated directory).
For those references, see my eclipse.ini for more.
(Note: there is no real full installation of eclipse, except for removing its directory)
Hallelujah. I removed ADT plugin, removed eclipse folder. Also I removed all mentions of eclipse from file system (several folders from user folder). Installed again. And it began work.
I encountered the same problem and was able to resolve it by simply removing the eclipse and android sub-folders from beneath my C:\user folder.
I was able to leave the main Eclipse folder alone, but I did need to install the Android plugin again.
The best answer is so simple, we've overlooked what eclipse is doing when we click "finish" after adding the plugin.
If you take a look at what eclipse is doing in the background before you install the plugin, it's actually installing the program, you'll see the loading bar updating, where ever you have dragged the loading bar to.
So you have to wait for eclipse to install it, it's actually doing something, we just didn't realize it, instead, we quit while eclipse was installing, it never got installed,thus it 'android' doesn't appear in the preferences.
Give it a go!
If you are facing problem with Updating existing ADT or from Install New Software option of eclipse. Best way to do it
1.Uninstall ADT from eclipse
2.Download ADT Plugin zip file from http://developer.android.com
3.Unzip file downloaded in Step 2 and go to plugins directory.
4.Copy all the jar files from plugins directory to plugins directory of your eclipse.
5.Restart eclipse
Just going to confirm that I has this same problem as well. I would download the ADT but it would not appear in the Window tab for Eclipse (helios) classic. I basically just reinstalled the ADT and that worked fine.
In Eclipse I went to the help tab, then Install New Software.
I clicked the "whats already installed" link on the right
I then uninstalled all the android stuff
Then I just reinstalled it again.
Before I restarted Eclipse I waited 2 minutes just in case some files were still installing
Then I closed Eclipse and opened it again and that seemed to do the trick^^
I am having the same problem.
I uninstalled the ADT by mistake. The ADT was functioning correctly before this point of time.
Now when I try to install it again, it installs correctly but it doesn't load up in Eclipse. What I mean is that I can see the ADT has been installed when I check the installed plug-ins section; but I cannot see the Android section under Preferences and neither can I see the Android SDK and AVD Manager button/option under Windows.
I am currently using Eclipse 3.5.2 on a Windows 7 x64 system and I do have Subclipse installed as well.
Please advice.
Ok. So I got it working by removing Eclipse completely (even the folder under Users). Then while installing everything again, I did not install the Subclipse plug-in and everything is working as it should. I already have a seperate software for managing subversion repositories, so this setup works for me.
Related
All project worked fine
But suddenly
This problem occurs all project...
I can not run all project.
This occurs after the recent update for the Eclipse Plugin(s) for Android. In Eclipse, use Window -> Android SDK Manager, and update your Android SDK Installation. The error message will disappear when you restart eclipse.
Or, if you're like me and have both Eclipse 3.7.x and Eclipse 4.2.x installed, you will need to update the Android SDK Installation on both of them if you want both of them to work (despite the fact that I used the same installation directory).
Updating the Android SDK install is something of a beast in and of itself; I was having some issues installing API 17, but I found that clearing the SDK Manager cache alleviated those problems.
I still had the issue following aanno's answer, so what I had to do after his step was to switch my workspace (File->Switch Workspace) to another folder, apply that and then immediately go back and re-select my original workspace location. Once I did that and eclipse returned, my workspace was back up and running.
The error appeared after an upgrade earlier today. There was no obvious difficulty with the upgrade.
After many partial measures, it took the following to get the error to go away:
deleting both the Tools and current Android API installation, using the Android SDK Manager (followed by reboot);
deleting the original directory in my filesystem containing the Android SDK files;
downloading a fresh version of the Android SDK files (http://developer.android.com/sdk/index.html) and specifying its location in filesystem to Eclipse in Preferences=>Android;
installing fresh versions of both the Tools and current Android API, using the Android SDK Manager (followed by reboot)
I wonder if there is something buggy in the regular updating protocol. If updates go wrong again, I will try this full uninstall and reinstall of the SDK files and ADT Plugin from the outset.
For the record:
Mac OS 10.8.2 on 11-inch MacBook Air, Late 2010
Eclipse Version: Juno Service Release 1
Build id: 20121004-1855
Android tools: 21.0.0.v201210310015-519525
Even reinstalling the Android Plugins for Eclipse didn't made this error go away for me.
For the record (aka what I've tried)
I've looked for a file called "find_java" in my SDK Folder but couldn't find any (OS X here). Solutions suggested by other answers modifying this file was not an option.
I've also uninstalled Eclipse Plugins (using Eclipse Juno) via About eclipse > Installation Details. Also I've tried to remove possible remaining files for this I removed these files/folders:
/path_to_eclipse/features/com.android.* (found 4 folders in total e.g. com.android.ide.eclipse.adt_16.0.1.v201112150204-238534)
/path_to_eclipse/plugins/com.android.(found 4 *.jar e.g. com.android.ide.eclipse.ddms_16.0.1.v201112150204-238534)
I then reinstalled the plugins from inside Eclipse via Help > Install New Software following the usual process.
Note: Starting the Android SDK Manager from within Eclipse I got informed my software is up to date!
Solution (?)
With installed Eclipse Plugins I downloaded the SDK from dev.android.com, unzipped to a nice location (near the beach of you ask me ^^) and referenced it from within Eclipse: Eclipse > Settings > Android > SDK Location.
It seems the dex.jar error moved away after this (consisstent even after restarting Eclipse).
However currently my open projects are Unable to resolve target 'android-XX' (X generic version number).
Once again I had a look in the Android SDK Manager and yup - now it's listing a lot of plugins as uninstalled so currently I'm re-installing the API for various Android level.
Will keep this post updated but it seems that downloading and manual referencing the SDK did the trick.
I just updated to Ubuntu 12.04 LTS, and installed Eclipse (via Ubuntu Software Center). I also installed the Android SDK and the plugin on Eclipse, however, I imported an old project (which was working correctly before) to it, and it don't even has generated R.java file.
In gen/<my-package> directory there is only a file named BuildConfig.java.
I tryied removing all the warnings from my xml files, and Build, Clean, etc, but it doesn't work.
I dont know if I'm missing some lib or what, because this project was being executed corrected on Eclipse before I installed Ubuntu 12.04 LTS.
I tried creating a new project and check if it creates the R.java file, however, it wasn't created. Maybe the problem is with the eclipse.
UPDATE
The same problem is happening to IntelliJ.
Please help me with this issue. Thanks.
If it's not working and you think you tried everything, first blow out your eclipse installation(un-install and re-install).
If removing and re-installing plug-ins doesn't work, rename your ~/.eclipse folder and start again.
If that doesn't work, delete the .metadata folder in workspace...and start again.
(you're going to have to re-import all your projects)
Install Eclipse from repository(I'm using eclipse from software center and the openJDK).
If you're running x64: sudo apt-get install ia32-libs-multiarch
As root launch eclipse to get the latest platform/PDT updates(they're in /usr somewhere, so you need to be root).
Close eclipse(optionally delete the /root/.eclipse folder).
Launch eclipse as non-root.
Install plug-ins. They'll be in your ~/.eclipse directory.
If it's already installed
Remove all the components in Window->Android Manager
Update the plug-in through:
Help->Install Software->Already installed -> Show updates -> Install
Re-install all the components.
If it's not already installed
Install the ADT plugin through the Help install software menu. With this link.
Choose to install the SDKs during the ADT install.
If any part of installing gives you errors, un-install and install that part.
Install all the updates.
If any part of updating gives you errors, un-install and install that part.
This achieves the results below.
Versions:
In my case it happened after I installed did a mistake at the beginning.
I used 64-bit Linux Ubuntu machine
Installed 32-bit eclipse
Added platforms and packages following
http://developer.android.com/sdk/installing/adding-packages.html
Installed 64 bit eclipse because I had problems with 32 bit eclipse operation.
But I didn't find that android-sdk-linux/platform tools/adb is a 32-bit executable.
Trying to run from terminal it causes weird message: "No such file or directory"
The solution is to remove the step 2 results and start it again with 64 bit eclipse.
I just renamed android-sdk-linux and unpacked it again to remove results of step 2.
One of the reason this happens is usually the swap space....make sure you have a swap partition and it is of sufficient size
Mine was showing similar problem but it was each time i would clean my project the R would disappear and not come back.
Swap partition solved my aapt problem.
I have Eclipse (Indigo Service Release 1, Build id: 20110916-0149) running on Win XP.
I've added
https://dl-ssl.google.com/android/eclipse/
and installed 4 plugins, including ADT, and restarted Eclipse.
Installed software list shows Android plugins are installed.
But nothing appears in Preferences, and there are no Android-type project in New Projects.
Later I check Eclipse's directories and there were four *.jar archives with these Android plugins, and they weren't unzipped to corresponding directories (like other plugins). I unpacked them so directories same as *.jar names, and started Eclipse again, but nothing happens.
How can I work with ADT plugin in Eclipse?
I just had the same problem on windows 7 running Indigo. I eventually discovered that I had accidentally not run Eclipse as an administrator when I installed the ADT plugin. I solved the issue by uninstalling the ADT plugin, and then re-installing the ADT plugin when running Eclipse as an administrator. Once I did that Eclipse restarted and immediately prompted me for the location of my android SDK.
As far as steps go:
Run Eclipse as Administrator
Go to Help > About Eclipse SDK > Installation Details
Select Android DDMS, Android Development Tools, Android Hierarchy Viewer, and Android Traceview
Click Uninstall and click through the dialogs
Restart Eclipse at the prompt
Close Eclipse and re-run it as an administrator (not sure if this was necessary but I wanted be sure Eclipse had full permissions when I reinstalled the ADT Plugin)
Re-install the ADT plugin the way you did before.
Restart Eclipse at the prompt.
Q: Did you install the Android SDK?
You need to do this in addition to installing a) Java, b) Eclipse and c) the Android plugins for Eclipse
Here's one (of many!) "Quick Start Guides" for setting up Android on your development PC:
http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
PS:
Please don't "unpack" anything, except unzipping Eclipse itself.
You might actually wish to delete your install and re-install from scratch (just to make sure there isn't anything "weird" in your environment).
Well i had this issue as well, but what i see its one componment that isnt on the google servers (at least for indigo) com.android.ide.eclipse.adt_20.0.0.v201206242043-391819.jar
you need download the ADT from google server ADT 20.00 and the install new software in help menu as always
In the Add Site dialog, click Archive.
Browse and select the downloaded zip file.
Enter a name for the local update site (e.g., "ADT-20.0.0.zip") in the "Name" field.
Click OK.
and done choose the ADT developer that i bet you dont have installed that should fix the problem ;)
I tried everything and nothing worked until I made my JAVA_HOME and PATH point to my JDK 6, they were pointing to the 5, then before installing the ADT plugin, make sure Eclipse is using the JDK 6 in Preferences/Java/Installed JREs. Of course make sure you are running/installing everything as an administrator.
You should install start SDK package (download), after that install android packages by windows/SDK manager. After that you§ll see everything you've mentioned
I encountered the same problem today, and a simple removal of the installed plugin is not helpful. My final solution is:
Remove the Android DDMS, Android Development Tools, Android Hierarchy Viewer, Android TraceView and Tracer for OpenGL ES first.
Remove the com.android.ide.eclipse.adt.package_version_info and other adt related jar directory under eclipse_home/plugins/. It is very easy to recognize based on its version_info on its name.
Modify the artifact.xml under eclipse_home, remove all artifact tag related with 'adt'.
Reinstall Android ADT again with Admin Privilege.
If you are going to reinstall as administrator make sure to remove the ADT Plugin from the Windows > Preferences > Install/Update > Available Software Sites.
Also something that may help is when installing the ADT Plugin you get the option for Developer Tools which the http://developer.android.com/sdk/installing/installing-adt.html guide tells you to select, but make sure to also select NDK Plugins.
And as usual do this while running as administrator. It probably doesn't make a difference but instead of clicking restart I closed Eclipse and reopened as administrator each time it was necessary.
As far as I can tell the NDK Plugin was the only thing I did differently when I finally got it to work.
I have Ubuntu , to make story short, I tried every advice here, nothing helped (reinstall, ADT removal- adding, run as sudo, deleting .eclipse folder etc).
The cause of problem was running eclipse updates.
So, I downloaded ADT bundle as zip - adt-bundle-linux-x86_64-20130729
unpacked it, run eclipse inside it, used existing workplace, and it worked, 'android' option appeared in Preferences.
However, there is no longer 'eclipse' splash logo at start-up, it's now called Android Developer Tools
Build: v22.0.5-757759
The real solution to this issue is that you MUST run Eclipse as an Administrator before you install. There are a number of plugins that have this same issue.
So, I "searched for new software" under the help-tag, downloaded the files from the provided link, let Eclipse do the rest until i could click "finish" and finally restarted Eclipse.
During the installation-progress, Eclipse asked me if I trusted a certain certificate that was downloaded. I guess that is normal.
After the restart of Eclipse, I couldn't find an "Android"-Tag in Window/Preferences. It was simply not there! I uninstalled Eclipse once and reinstalled it, made all the steps again and finally restarted Eclipse again, but it was still not there! I couldn't add the ADT-Plugin to Eclipse.
I'm using the most recent Eclipse.
(I do already see the DDMS perspective and can activate it somehow :O)
Did you install the Android SDK before the eclipse ADT plugin? If not then install the SDK. Here is a link to the installer.
I've installed the Android SDK and the ADT plugin, but Android doesn't show up in the Window>Preferences... dialog.
I'm running Galileo. If I go to the Installation Details part of the About Eclipse dialog, it says that I have 0.9.6 of Android DDMS and Android Development Tools. I can run adb from the command line. I tried going around the uninstall/reinstall loop once.
I'm on Windows Vista. I also have 2.7.7 of the Scala plugin installed, but I tried uninstalling that.
Any ideas on what I should try next? Thanks.
Is your eclipse installation running from the "Program Files" or "Program Files (x86)" folder?
This was my case and I had this particular problem and a few more.
What I did was to place a fresh copy of Eclipse in a different folder (e.g. c:\dev), launch it and to install the Android Plug-in using the Eclipse Update and it seems to work fine now.
I did not need to download again the Android SDK.
Sounds like you are missing a dependency. What you're describing happened to me once (I can't remember for sure, but I think it was with adt).
From http://developer.android.com/intl/de/sdk/eclipse-adt.html#installing:
Note that there are features of ADT
that require some optional Eclipse
components (for example, WST). If you
encounter an error when installing
ADT, your Eclipse installion might not
include these components. For
information about how to quickly add
the necessary components to your
Eclipse installation, see the
troubleshooting topic ADT Installation
Error: "requires plug-in
org.eclipse.wst.sse.ui".
I had the same problem. Seems to be related to where Eclipse is installed, the path should not contain spaces, like David suggested.
I installed a fresh copy of Eclipse to c:\Dev and installed the ADT. Now everything works fine.