Updated eclipse, every single project broken - android

http://puu.sh/3oa21.png
See above, 119 errors in total, every single project has been broken and everything is undefined, including inconsistent 'hierarchys of type'new projects dont have this problem.. :/ at my last tether please help!
http://puu.sh/3oa21.png

Updating my ADT helped me when I had the same problem:
How to Update your ADT to Latest Version
In Eclipse go to Help
Install New Software ---> Add
inside Add Repository write the Name: ADT (or whatever you want) and Location: https://dl-ssl.google.com/android/eclipse/
after loading you should get Developer Tools and NDK Plugins
check both if you want to use the Native Developer Kit (NDK) in the future or check Developer Tool only
click Next
Finish
Edit:
Did you try restarting your PC? adb.exe (and maybe other background services) might need to be restarted

if you take a look at your build path for your project you will probably see errors in it right?
What you need to do it change the order of the build path and make sure all boxes are checked.
I had to change my order to src/Android Private Libraries/SDK version/Android Dependencies/gen in that order
see here also
Libraries do not get added to APK anymore after upgrade to ADT 22

Related

Location of the Android SDK has not been set up in the preferences in 64 bit Windows

"Location of the Android SDK has not been set up in the preferences in 64 bit Windows" - I know this problem has been addressed before several times, but rather than comment on an old question I decided to make a new one because still it's not solved.
Recently I changed my system from 32 to 64 and currently I cant Run my ADT. When am using 32 its works fine. I installed 64 bit ADT (Build: v21.1.0-569685) and updated everything. Now My ADT contains 6.41 GB.
Now when am trying to run Eclipse I got a popup like
When I am searching this I got a solution like Window -> Preference -> Android -> SDK Location Set the path of the Android SDK in your computer there.
But when I am trying for this OK button is not enabled.
When I am trying to Access AVD again a popup came
When I am trying to create a new Project, another Popup is shown like
When I am trying to update - Mo Updates Found message is showing
Can anybody offer some advice on this problem?
How to Update your ADT to Latest Version?
In Eclipse go to Help
Install New Software ---> Add
inside Add Repository write the Name: ADT (as you want)
and Location: https://dl-ssl.google.com/android/eclipse/
after loading some time you will get Developer Tools and NDK Plugins
check both if you want to use NDK in the future or check Developer Tool only
click Next
Finish
Now My Problem Solved :-)
The issue may arise if you are running IntelliJ Idea or any other IDE that uses / shares the same Android SDK. After running IntelliJ Idea, and thereafter running Eclipse, the Eclipse IDE fails to get the path of the SDK. In Eclipse go to Window > Preferences > Android and change the back slashes to forward slashes. For e.g, D:\eclipse\android-sdk to D:/eclipse/android-sdk and press Apply.
I have faced the same issue
Solution: go to the below URl https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip Extract the folder and now go to the preferences and select the SDK folder from the Extracted Folder, and apply it . the problem will be resolved
Go to preferences, find "Android" on the sidebar and then there will be a box for SDK location, point it to the SDK. Read over http://developer.android.com/sdk/installing.html if you're still stuck.
OR
Go To Eclipse >> Windows >> Preferences and click on the left tab Android and you will see the below image with some text above as
“This Android SDK requires Android Developer Toolkit version 14.0.0 or above. Current version is 11.0.0.v201105251008-128486. Please update ADT to the latest version.”
And Update..
Go to Eclipse >> Help >> Check for Updates.
Please don’t forget to close Eclipse after the Updates complete.
How to update your ADT to the latest version:
In Eclipse go to Help ---> Install New Software ---> Add ---> Add Repository
Write the Name: ADT (as you want) and Location: https://dl-ssl.google.com/android/eclipse/
After loading some time, you will get Developer Tools and NDK Plugins
Check both if you want to use NDK in the future, or check Developer Tool only
Click Next
Finish
It means the "Android SDK" folder is empty, that's why it does not want to add it to Eclipse. Here are the contents of the Android SDK folder:
Windows: https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Mac: https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
Download and extract the contents to a new folder and name it android-sdk and link that directory to Eclipse and you are all set!

Android error in eclipse: Unable to resolve target 'android-xx'

I know there are some sort-of duplicates of this, but none of the answers have been able to help me so far.
In a project shared with some friends over SVN, I always get the following error:
Unable to resolve target 'android-10'
When I change project.properties to alter the target version, the error message will remain, unless I use android-16.
I have checked my project's Android sessions to see if I could change the target there, but it only gives me 16 and 17 as options.
In my SDK Manager, I have the entire "SDK 10" branch installed, as well as several others.
Does anybody know what may be the problem here?
Another method is not use the same SDK, but use the SDK in your computer.
Right click project and select Android ,check target name, click 'apply' and 'ok'.
Then Right click project -> Android Tools -> Fix Project Properties.
Clean and build the project.
This answer is way too late but for anyone experiencing the same problem, try installing API 10 from the SDK Manager. Then run everything as you did before.
Or if you're on a Windows OS, this might also help: http://sagistech.blogspot.ca/2010/05/android-sdk-error-unable-to-resolve.html
If you're not getting android-10 as an option in the properties view, then clearly there is something wrong with your installation.
Well, the obvious thing to do is to doublecheck that the SDK location in Window >> Preferences >> Android is set up correctly and pointing to the right installation of the ADT. If so, the view in preferences should also include SDK10 as one of the installed platforms (in which case, there really shouldn't be any problem).
If it doesn't, something has gone wrong - either in Eclipse or the ADT installation. I would check - just to be sure - that you have the right Java SDK - I've had problems with Eclipse/ADT myself when this is the case.
If those two things seem in order, though, the best advice I can give is to reinstall eclipse and the ADT both. If you only use the installation for Android, then I'd suggest using the "official" Google Eclipse package from developers.android.com.
Unless you have a lot of stuff set up in your eclipse environment that would be pain to change, I wouldn't recommend spending time on trying to identify whatever variable is messed up (speaking from painful experience here ;) ).
While importing project tick the checkbox "Copy Project into workspace" after selecting projct. Hope this help you, as this option fixed for me.

Eclipse cannot find Android Support Library

I am an experienced programmer but new to Android, hence using Eclipse for the first time.
Unfortunately I cannot get my first project off the ground. I get as far trying to create the project when the following sequence happens.
A screen arrives titled 'Install Dependencies' telling me that the required version is 8 and the installed version is 'Not installed'
I click on the Install/Upgrade button and something must happen because Android SDK Manager pops up and I get a whole series of 'Fetching:' messages.
The next screen asks me to Choose Package to Install and the only option is Android Support Library, revision 10. This doesn't bother me as I presume 10 is better than 8 so I hit the Install button.
This is where it all goes wrong as I get a red message saying:-
File not found:C:\Program Files (X86)\Android\android-sdk\temp\support_r10.zip (Acces is denied).
Sure enough, when I check this folder, it is empty.
Now, something must have happened as as SDK Manager did a whole lot of fetching and must have put these files somewhere.
I am quite happy to find them and put them in the correct folder but the question is
What is the name of the files that I am looking for?
Run SDK Manager as administrator and then install Android Support Library from Extras
Download the sdk manager seperately and install files from there. put it in a place which is accessible to you and then point your eclipse android directory to it. tools>options>android sdk
Run eclipse as Administrator. This is the solution.
Try running your application (Eclipse) in Admin Mode.
Right click on the Eclipse app, and choose "Run as Administrator"
This will fix your problem.
properties >java build path >click library tab > add jars > add jars from the support library.

Eclipse: Java Build Path is missing

I'm trying to use Google's SDK Tutorial for Android using Eclipse. I was able to get the first two projects to work, but when running the third R.java disappeared so I gave up on that.
I made a brand new package out of the solution set for exercise 3. It was full of errors, like files being in src/com/android... instead of com/android. I fixed that, but it still wouldn't build.
I went to the project -> properties -> Java Build Path, but Eclipse throws an error: "The currently displayed page contains invalid values." It then doesn't load up that window at all.
What am I doing wrong? How can I import this project properly?
Please check your Window>Preference>Android>sdk location --- is set to be the path of android sdk and if it not works then please go with new eclipse software delete previous check jdk is install and after that set correct android sdk location to above path.
Thanks
If the first two projects still work, then your studio is probably deployed properly.
You might want to check if you have a build target set.
Right click on project->android->target name.
Otherwise, might make sense to re-download eclipse and reinstall the google adt plugin.

Eclipse: won't let me use Android SDK, wrongly claims my ADT is out of date

I'm developing for Android with Eclipse, and all was working well until yesterday. I used Ninite to update all my stuff, including JREs and everything (pro tip: do not do that), and it restarted my computer without asking in the middle of editing my workspace.
This caused all kinds of filthy problems, but now it all works, except for Android. I've updated Android SDK and the eclipse ADT, then when I try to tell Eclipse the SDK location, it gives this error:
This Android SDK requires Android Developer Toolkit version 14.0.0 or
above. Current version is 12.0.0.v201106281929-138431. Please update
ADT to the latest version.
Now, this is an outright lie. My ADT is version 14.0.something. I've tried Help>Check for updates, it says there are no updates. I've tried Help>Install new software...>Available Software Sites and removing the ADT repo, then reinstalling ADT, and it says it failed because I already have version 14.0.whatever.
How do I convince eclipse that my ADT is up to date??
I found the answer to the problem. (I'm using Helios, but it should work anyway)
Goto folder /Program Files(x86)/Eclipse/Plugins/ and make sure previous older versions of com.android.ide.eclipse.adt.package_##... are deleted (sometimes update fails to delete because of UAC). Keep the current desired version and complete the following.
Run Eclipse as administrator or disable UAC temporarily. (windows 7)
Go to Help → Install New Software.
On Work with: type https://dl-ssl.google.com/android/eclipse/ and press ENTER.
Wait for Eclipse to fetch the repository. An item named Developer tools will appear in the list.
Mark it for install, press Next and follow the steps to install the ADT tools.
When finished, it will ask to restart Eclipse. Make sure you do this.
When Eclipse restarts, all your Android SDK packages should show up again.
Dont forget to resume UAC if you need it.
An option is to manually download the ADT plugin (ADT archive) required. The page is, http://developer.android.com/sdk/eclipse-adt.html. The page reveals ADT 18 is available at http://dl.google.com/android/ADT-18.0.0.zip. The link is closer to the bottom page. I needed 17 although 18 was the latest, so I modified the download URL, changing 18 to 17.
Select Help → Install New Software → Add → Choose Archive and select the location of the downloaded ADT archieve file, Choose OK.
Select the components required and proceed as required. You may get a message that the software is already installed, proceed with the installation.
Hope this helps.
I had the same problem. My ADT in the eclipse was 8.x version. But my app required version 12 or more. So, I decided to upgrade both the Android SDK and ADT to the latest (at this time latest ADT is 17). I was able to upgrade the SDK but not the ADT. It always complained I got the versions already but I only had 8.x. The new SDK that I just upgraded would function only with ADT 14 and above. So, I had successfully broken my android development!!
The reason why I wasn't able to upgrade my ADT to the latest was because I was using Eclipse 3.5. The newer ADT versions require 3.6 or above. This small but key bit of information was really at the bottom of the error generated by Eclipse which required scrolling down (since only the top few lines of error were displayed). You typically wouldn't scroll down since these top few lines were followed by whitespace lines :). I did not scroll and I guess I wasted about a day trying to rectify this problem. But eventually I saw those 2 up/down arrows at the right of the dialog box and I scrolled down. There it clearly mentioned ADT 17 requires Eclipse runtime 3.6 and over.
So my solution was to find a suitable ADT that would work with Eclipse 3.5. Yes, tomorrow when I am in the mood, I shall upgrade to Eclipse 3.6 or 3.7 and the boat load of plugins I have :)
I've just upgraded my Android SDK version, and had exactly the same issue.
The 'Check For updates' Eclipse command failed because, for some reasons, Android Traceview failed to update.
My solution was to :
* Open Eclipse → Help → About Eclipse .
* Click Installation Details.
* Here select all the android related lines, and update them one by one, restarting eclipse each time.
And finally it worked ( even with Helios ) !
Best option is go to open eclipse ID
Then go to Help → About Eclipse >>
u will find the Installation Details button click on that
And now u can see the all anriod extension installed.
Select all or select one by one and just click the update button.
you will get the latest version from the net.
Hope these will help you all.
In Eclipse:
Help → Check for Updates.
Your ADT and SDK is not up-to-date yet and Eclipse is complaining about the right stuff...
Open Android SDK Manager from toolbar and update your SDK from there. It doesn't help if you are checking Eclipse updates. Because through Eclipse you cannot check SDK updates for Android.
Button looks like this :
I'm hearing a common issue is that newer Android ADK versions require newer eclipse versions. Colleagues who hit this say they installed Indigo in place of older Helios versions and were able to resolve the issue this way. I have not yet done the same myself.
To anyone else with this problem, my solution was just to delete the Eclipse folder, and download a new copy from scratch. I had to then re-download all plugins including adt, which worked this time round.

Categories

Resources