I installed Eclipse and ADT plugin 23.0.4, but sometimes when I click XML in my project,this problem may happens:
An internal error occurred during: "Check Android SDK".
java.util.ConcurrentModificationException
I don't know why and I have already tried to delete the SDK files and download them again.
How do I fix this?
This problem has already been discussed in detail here.
You may have a problem with you Android SDK version. Check in you manifest and compare it to the SDKs you have installed. Start your Android SDK Manager and make sure you also have the tools installed, it is described in more detail here.
If none of that helps, you could always switch to Android Studio, which is now the "official Android IDE." Since I switched I have encounter fewer problems.
Related
After importing an old android project from github which was running on API 23 (if I interpreted correctly), errors were displayed about the versions since I only have API 30 installed. So I installed that and now I'm getting this error
After searching for long time, a solution which I saw at many places was to change the JDK location to JAVA_HOME, but doing that then gives the below error
Being an absolute beginner, I'm not able to understand these errors or any posts here on stack overflow. Any help would be greatly appreciated.
On a side note: The project that I am importing is the multiscreen apps course by Google on Udacity
I was facing the same issue. After changing the sdk to java 1.8/11, I found I was missing Android SDK 29 (in my case). Installing the SDK from tools fixed my problem. It also showed this as a warning on build logs. Dont know why it was showing only the above issue.
I just updated to latest android studio and had invalidated caches and restart but after that my project files are all red and android studio cannot detect java.
Whenever I hover on red line, It shows a configure JDK option.
I had downloaded latest jdk from oracle website and selected that in java path but that also didn't work. I am not able to open settings, SDK manager, neither can I configure SDK.
Below is the error dialog
I tried all the options below but cannot solve the issue
In my case is the CSV Plugin's fault.
After I noticed en error in the right of the status bar said that CSV plugin startup failed, then I disabled this plugin in the Report Issue dialog
Then restart Android Studio will fix the cannot open settings problem
plugin
I think you have not setup JDK.Try to setup JDK and i think it will help you to solve the problem.
Finally after hours of debugging , here is how I solved all the issues.
Cause of the problem : Improper Update
Checked IDE log, which was showing an exception thrown by a plugin. So I uninstalled that plugin.
Deleted old folder of android studio .Android-studio-3.6 present inside C\Users\<Username>\
Most of the errors were gone but android studio was shwowing a warning "Two different JDK locations are selected for building gradle....", so I went to control panel and deleted all old versions of java except for the latest JDK 14.0.1 which I downloaded from Oracle website.
Still it was showing the same error so I downloaded Android Studio 4.0 exe file from their website and re-installed Android studio. While Reinstalling, I did not select Android Virtual device as it was already installed.
Recently I updated Android SDK Tools, Android SDK Platform-tools, Android SDK Build-tools, and downloaded new APIs Android 4.4W and Android L (both API 20).
After restarting eclipse, it required me to also update the ADT from 22.x that I had to 23.x.
I went to Install New Software in eclipse and updated the ADT to 23.0.4.
After restarting, I figured out nothing in Eclipse is working properly:
All the projects contains errors of several types:
Unable to resolve target 'android-19' until the SDK is loaded.
The type java.lang.Object cannot be resolved.
The project was not build since its build path is incomplete.
The Android SDK Manager won't open.
When I write click on a project -> properties -> Android, there're no libraries and I can't add any.
Never seen something like that. I read that more people had problems after updating the ADT but none of the solutions worked. Thanks
Some hypotheses:
Broken Android SDK + tools installation. -- Can you open the Android SDK Manager and the emulator outside Eclipse? Consider reinstalling the SDK from scratch.
Eclipse can't find the Android SDK + tools installation. -- Check the ADT preferences in Windows > Preferences > Android. See this screen shot.
Broken ADT plug-in or its state. -- Try uninstalling ADT then reinstalling it.
Broken Eclipse installation. -- Consider reinstalling it from scratch. This could be a good time to update to the latest Eclipse (Luna).
Actually, this is a good time to try Android Studio. Right now your relative cost of switching is particularly low. Android Studio will take getting used to but it's slicker, does more work for you, and is the focus of Google's Android tool development. Android Studio is in beta testing but it's stable and usable.
Do watch the video What's new in Android development tools from Google I/O 2014.
See Google's notes on Troubleshooting ADT Installation.
There are more tips for fixing the ADT installation, e.g. Eclipse Indigo Android ADT - install OK, no "Android" option in Preferences and New Project but you can rule out most of those ideas since it used to work for you.
Maybe the fix on this Ubuntu forum post is relevant. There, an Ubuntu upgrade broke ADT because of the needed GEF plugin.
To everyone which gets this problems in the future:
Do not try to struggle with it for hours, with frustrating solutions from the internet.
Simply re-installed eclipse, ADT and android SDK in about 30 mins and everything works perfect, finally.
I am using adt-bundle-windows-x86-20140321, problem occured since updating java.
But now problem already fixed after re-Extracting adt-bundle-windows-x86-20140321.
NOTE: I have already fixed this problem. I used the methods described in a previous question/answer discussion. Thank you for whoever tagged this as previously answered!
It an be found here: ADT 22.2 New App Wizard: Unsupported template dependency: Upgrade your Android Eclipse plugin
Today I just downloaded and installed Eclipse via the developer.android.com tutorials. I had almost initiated my first Android Application when I came across this error:
I don't understand the error. It does not specify a required version, and my version is the most up to date version. Neither the [Install/Upgrade] nor the [Check Again] buttons appear to function. I have also tried to delete and reinstall the Android Support Library via the SDK Manager multiple times.
Can any one help me? Thanks in advance!
Note - I do in fact have both the Android Support Library and Android 4.3 installed:
*Edited to add picture and note*
How did you create your project? Steps: New -> Android Application Project? If you've done this, you should check whether you have installed "Android 4.3" and "Extras->Android Support Library" in Android SDK Manager.
Go to the Android SDK Manager, then download the required Android version, in your case, version 18 which is Android 4.3.
Right click on the project -> properties -> Android -> select a platform like 4.0
It sounds like you don't have installed android 4.3 sdk(API level 18).
Please open eclipse->windows->android sdk manager and make sure your android 4.3(API 18) status is installed.
Download from http://dl-ssl.google.com/android/repository/tools_r22-windows.zip, unzip it and replace the /tools folder with this one to downgrade the sdk tools. There's a bug in version 22.
Sorry, but someone found that this is a duplicate. I replaced my sdk/tools/templates/activities folder with a more up-to-date one, which resulted in success. The steps and files can be found here:
(ADT 22.2 New App Wizard: Unsupported template dependency: Upgrade your Android Eclipse plugin)
Thank you for all who took time to try and answer my questions. It is much appreciated!
After getting a new computer and setting up eclipse again, no projects are generating the .R file. The SDK is on revision 22 which I noticed some people had issues with, but setting the Private Libraries checkbox did not resolve this.
The .R isn't generating for existing projects nor brand new empty android projects. The SDK levels between the build configurations and the manifest match.
An entire uninstall of the SDK, and redownloading the Android version of eclipse and SDK didn't work as well. Could it be something with the versions of Java installed on the machine? Or is there some other common cause of the R not generating I missed after searching?
I got the same error as yours.
note:
The SDK directory architecture of 22.0.1 version is different from before.
there is not platform-tools directory and some command file move to other directory.
but,eclipse and ADT plugin does not update according with SDK
so, linking related bin to platform-tools directory will work.
above meet my error.
Update your SDK Tools from the SDK manager and ADT in eclipse, this was fixed in the latest update (22.0.1)
Also, after you update your SDK, close and reopen the SDK and check for updates again (in case you don't see 22.0.1)
Take a look here for some similar issues Class not found error after updating ADT and Android sdk tools to latest ver 22