I have been thinking of starting an Android Development project. I searched on Google for it, it asked me to first install the Android SDK. On visiting http://developer.android.com, I discovered that downloading the SDK only will make it a bit difficult for me to manage the projects, so I downloaded the ADT bundle, which had the Eclipse IDE included with it. On testing it, I am finding the SDK to be working properly, but the Eclipse IDE wasn't starting, asking me to install a Java Runtime Environment. Installed that too, copied the jre directory to the eclipse folder, then tried to run eclipse.exe, got an error saying
Failed to load the JNI shared library
"C:\Users\Tanmay\Desktop\adt-bundle\eclipse\jre\bin\client\jvm.dll".
Please suggest me what shall I do to make the Eclipse IDE work, as working with the SDK through the command line is too tiring..
Related
I imported a cordova project based on HTML5 which was developed by my friend and tried to run it on Netbeans. But when I run it, it says
cannot find ..\my friend's android sdk path\build.xml imported from ..\my project's path(not my sdk path)\build.xml
why this problem get to happen and how can I overcome the issue and run the project.
I found a si,iler issue here and edited local.properties file under the netbeans project\platforms as answered there. But I am still getting the error. help me. thank you ..
Have you checked if your path has the 'build.xml'?
It should be in %SDK%\tools. Like the comments in the question you linked, maybe you have a bad SDK.
check which android version your app is and which versions are available in the SDK. This error is thrown by netbeans if there is no matching SDK version.
You need to set your environment variable, like they do here: (You can use only 'C:\Development\Android\android-sdk-windows', no '\platform-tools\')
Add the platform-tools\ directory to your Windows path: ;C:\Development\Android\android-sdk-windows\platform-tools\
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 followed a tutorial to install Eclipse and the Android development files onto an Ubuntu (Lucid) installation and Iv a feeling things are not quite right.
The tutorial can be found here.
The problem seems to be that because everything was installed into the /opt folder I am unable to load any of the sample files because of course they are read only, and I'm unsure about how safe it would be to run Eclipse as root.
My thoughts were to remove all of the Android files and start again and set the location in my /home folder somewhere, but I am unable to find any information on actually removing it (Or if this is in fact the best thing to do).
Here's what you need to do:
Install the latest java JDK.
Within eclipse, install the android ADT plugin http://developer.android.com/sdk/eclipse-adt.html
Download and install the android sdk http://developer.android.com/sdk/index.html
Run the AVD manager (in the android sdk) to install the platform components. (this can be ran from within eclipse)
In eclipse, go to preferences/android and set the SDK path.
Create an android application!
Good luck!
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.
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.