Well i've decided to update the sdk using sdk manager. I've updating at the last android M preview API. After that, i re opened Eclipse and all my projects had errors!! The appcompat library returns in the console this:
android-support-v7-appcompat] /android-support-v7-appcompat/gen already exists but is not a source folder. Convert to a source folder or rename it.
I really don't know what it means! But i can't work now!
the problem is in the ADT you must update it to a version above 23... it seems that they (Android guys) are making our life harder, they want us to migrate to their tool (Android studio)
you can follow those steps:
first of all download the ADT Plugin zip file and do not unpack it.
then, Start Eclipse, and select Help > Install New Software.
Click on " Add ", in the top-right corner and in the Add Repository dialog, click on " Archive ".
you must select the downloaded ADT-23.x.x.x.zip file (the_latest_one_available) and click OK.
After that enter "ADT Plugin" for the name and click OK. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
Then in the next window, you'll see a list of the tools to be downloaded. So you will click Next.
Accept the license agreements (no one read it :-) ), then click Finish.
Note that if you get a security warning saying that the authenticity or validity of the software can't be established don't care about that, just click OK.
After completition, restart Eclipse and Voila, it must be done.... I hope so...
i will post another answer and not editing the first one because it's another different approach: you can Undo update your sdk for this you can:
Download the older ADT plugin manually (the one who was working fine, don't forget to check if you haven't it already in your downloads folder). Then copy the tools folder from there and replace the tools folder in your SDK installation directory.
Your SDK will be back to the older working version.
Related
I installed my eclipse
when selecting target , It says no target available
When I tried to add location in preferences , it says ADT is not up to date
SO I updated it in help as well
there was no change
SO I selected : "Install new software" in help and then at the end of the process, it says
Cannot complete the install because of a conflicting dependency.
Software being installed: Android Hierarchy Viewer 23.0.7.2120684
How do i resolve this
Step to do -
1) Install latest packages from Android SDK (Main things required - Platform tools, Build Tools and latest platform(for example - Android API 23 Marshmallow))
2) Start Eclipse, then select Help > Install New Software.
3) Click Add, in the top-right corner.
4) In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:- https://dl-ssl.google.com/android/eclipse/
Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.
5) Click OK.
6) In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
7) In the next window, you'll see a list of the tools to be downloaded. Click Next.
8) Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
9) When the installation completes, restart Eclipse.
If the above doesn't work, get help from http://developer.android.com/sdk/installing/installing-adt.html
PS - Try using Android Studio. Also, if you like this answer, please mark it as selected.
If you're using Android Studio, restart the program > in the project menu, where you can for example start a new, or import a project, choose configurations > SDK manager.
Here should be everything you need for downloading the proper build tools for your project.
As it shows that there is a "conflicting dependency. Software being installed: Android Hierarchy Viewer 23.0.7.2120684". Then read the rest of the details about the problem, and search if it suggests any older version of the same file is already installed or not. In case of a conflict,
Go to BACK where you selected the ADT previously
select already installed
uninstall the old version of those files of which the new versions are offered in new ADT version
(i.e.: I was offered Hierarchy Viewer version 23, so i uninstalled Hierarchy Viewer version 17 and other items of older version 17 from "Already installed" link).
Picture showed in the link -> 1 & 2
N.B.: You can compare the offered version and installed version as the picture showed in the link -> 3
after uninstalling all the old version items which cause confliction with new ones, close the "Already installed" window and hit the NEXT button and see if it still suggests any confliction. Which means you missed to uninstall any item of any older version of same file.
In that case compare again and follow the same procedure and go ahead.
Hope you will find your desired solution by following these steps. Thank you.
I was working on a project in Eclipse and unfortunately I removed some of my files and wasn't able to retrieve them back so I ended up creating a new project and importing my files back in. When this happened, I now receive an error:
When I try and update, it says it's already updated. I'm receiving multiple compilation errors in my project and am not sure what is going on since everything was working before I removed my files.
I see that it is telling me DDMS files are not found.. is this due to it not picking up my SDK? I tried to Help -> Install New Software and do a ADT but it seems I have already installed this since everything was working before.
Help on this issue on how to proceed/fix would be appreciated, thanks!
It seems that eclipse has edited or deleted files when updating
follow steps for updating eclipse
1. Download Eclipse from the official site
2. Download and install JDK latest version
3. After installing the eclipse, go to Help > Install New Software.
4. Click Add, in the top-right corner.
5. In the Add Repository dialog that appears, enter "ADT Plugin" for the
Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
Click OK.
6. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
7. In the next window, you'll see a list of the tools to be downloaded. Click Next.
8. Read and accept the license agreements, then click Finish.If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
9. When the installation completes, restart Eclipse.
I have installed adt version 22.6.1 already 2 days ago. It was working fine. Suddenly, When I open eclipse today, it keeps showing me following error:
This Android SDK requires Android Developer Toolkit version 22.6.1 or above. Current version is 22.2.1.v201309180102-833290. Please update ADT to the latest version.
Here is screenshot of my eclipse's Android SDK Manager :
I tried with following steps to resolve my issue as discussed in this Link
Help | Install new software
Select the ADT update site (there are two, one with http:// and one with https://. If one doesn't work, try the other.
Select the developer tools section and press next.
You should see a dialog that says This software is already installed, an update will be performed instead. Clicking OK will lead to 22.6.1 being installed.
But unfortunately it didn't work for me.
Here is a screenshot I am attaching which shows the error I am getting while updating the tools.
How can I get rid of it?
I have solved this issue yesterday.
Follow the steps :
Help -> Install New Software -> Add -> (Give any name suppose NewUpdate) -> add this url : https://dl-ssl.google.com/eclipse/plugin/4.2 -> OK
Now it will list the available updates, which should ideally be adt 20.x.x
Select the list items Let it be installed. Eclipse will restart and Its done.
I hope this will helpful for you :)
Yet, if someone is facing this issue, Then follow steps below:
download new stand alone SDK from android's developer site
Close eclipse if it is opened and copy new downloaded sdk in the same location where your already existing old sdk is. Must replace conflict files and keep rest.
No need to delete old sdk. Copying as in step 2 will update your Android Developer Toolkit version to 22.6.1 or above which is required and will keep already downloaded APIs.
Now start your eclipse, and the error will be gone forever. :)
if someone will have trouble doing so, leave me a comment, will try to guide.
I managed to resolve it by doing the following:
Downloaded latest ADT (Win x64)
Deleted my old ADT install (It got bugged when I simply tried to overwrite the existing files) - see this google issue
Copied the zip file to C:\ (since it was complaining about too long filenames while unpacking)
Unpacked to my ADT install folder.
Ran updates and SDK manager updates.
Now it's working, but I lost my pretty Eclipse theme. Oh, and the target adt is not being resolved, a problem for another topic.
Just delete the existing ADT and install new version of ADT.generally this problems occurs
when you update SDK using below link.
https://dl-ssl.google.com/android/eclipse/
The ADT Bundle on developer.android.com seems to me as out of date.
I fixed the same problem by downloading eclipse (Java EE was my choice, but you can choose your flavor) and Installing the Eclipse Plugin
this steps solve my problem:
go to Help -> Install New Software.
in the bottom box, click What is already installed? text.
then you will see Eclipse Installation Details box, please Uninstall all conflicts software, in my case I uninstall the following software:
Android DDMS
Android Development Tools
Android Hierarchy Viewer
Android Native Development
Android Traceview
Tracer for OpenGL ES
when uninstall complete, please restart your Eclipse.
after your Eclipse open, please follow again these steps:
go to Help -> Install New Software.
in Work with box, select or add {ADT Plugin - https://dl-ssl.google.com/android/eclipse}.
then check all available software.
click Next > to install newest software.
I hope this helps you :)
I use OSX and facing the problem for 2 days.
I solved the problem by following the steps below:
-Download ADT Bundle from https://developer.android.com/sdk/index.html
-Help -> Install New Software
-Write https://dl-ssl.google.com/android/eclipse/ then install Developer tools
-Restart eclipse and raised the error below:
Android SDK content Loader has encountered a problem.parseSdkContent failed
java.lang.NullPointeException
-Delete .android folder under user profile. Restart eclipse
No errors and 22.6.1 is installed.
For those who tried everything but didn't get any positive result. I did the following and it worked:
Uninstall the ADT by helping from following link:
Uninstalling Android ADT
Now you can follow the install new software to add ADT to your eclipse. This way you won't get any conflict since you uninstalled old version.
I currently have Eclipse and ADT installed in the same directory as
F:\eclipse
\eclipse\
\sdk\
I downloaded and installed the latest ADT to
C:\Users\Rick\AppData\Local\Android\android-sdk
I then copied the contents of the C:\Users\Rick\AppData\Local\Android\android-sdk into the F:\eclipse\sdk\ folder, and let it merge all folders and overwrite everything.
Now I have 22.6.1 and I don't have to re-download all the platform stuff again.
Today me and one of my friends faced the same problem, so I have tried many things like restarting eclipse, checking updates, etc. but none was working for me.
Then I found a solution from Here and it's working as a charm for me and also for my friend.
Follow the steps here:
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for
the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded.
Click Next. Read and accept the license agreements, then click
Finish.
If you get a security warning saying that the authenticity or
validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
The "Install new Software" under help in Eclipse will NOT work because it conflicts with ver#22.
I just downloaded the new Eclipse bundle from:
Get the Android SDK - google site, extracted it in a new folder ant it is done.
It is working smoothly, no problems.
Few tips to save you time:
Backup your workspace (just in case) - personally didn't use this back.
Once you open the new eclipse.exe it will ask you to select a workspace - just brows to your ols workspace and it will import all your projects (no problems).
In order to save time of download and install of the SDK again, I Cut & Paste the OLD SDK library from the previous bundle directory to the new one (Close your new Eclipse first).
When you re-open Eclipse, you may receive an error message saying that Eclipse can't find the SDK directory. It will ask you to open "Preferences". Once open, browse to the new SDK directory (the one that you just copied). Doing this will save you hours of re-installing all the SDK updates that you did on the previous Eclipse.
Have fun, it is really not a big deal.
How do I set up IntelliJ IDEA for Android applications?
I've spent a day on trying to put all the pieces together, been in hundreds of sites and tutorials, but they all skip trivial steps.
So here's the full guide:
Download and install Java JDK (Choose the Java platform)
Download and install Android SDK (Installer is recommended)
After android SD finishes installing, open SDK Manager under Android SDK Tools (sometimes needs to be opened under admin's privileges)
Choose everything and mark Accept All and install.
Download and install IntelliJ IDEA (The community edition is free)
Wait for all downloads and installations and stuff to finish.
New Project:
Run IntelliJ
Create a new project (there's a tutorial here)
Enter the name, choose Android type.
There's a step missing in the tutorial, when you are asked to choose the JDK (before choosing the SDK) you need to choose the Java JDK you've installed earlier. Should be under C:\Program Files\Java\jdk{version}
Choose a New platform ( if there's not one selected ) , the SDK platform is the android platform at C:\Program Files\Android\android-sdk-windows.
Choose the android version.
Now you can write your program.
Compiling:
Near the Run button you need to select the drop-down-list, choose Edit Configurations
In the Prefer Android Virtual device select the ... button
Click on create, give it a name, press OK.
Double click the new device to choose it.
Press OK.
You're ready to run the program.
The 5th step in "New Project' has apparently changed slightly since.
Where it says android sdk then has the drop down menu that says none, there is no longer a 'new' button.
5.)
a.)click the ... to the right of none.
b.)click the + in the top left of new window dialog. (Add new
Sdk)
c.)click android sdk from drop down menu
d.)select home directory for your android sdk
e.)select java sdk version you want to use
f.)select android build target.
g.)hit ok!
Once I have followed all these steps, I start to receive error messages in all android classes calls like:
I revolved that including android.jar in the SDKs Platform Settings:
I had some issues that this didn't address in getting this environment set up on OSX. It had to do with the solution that I was maintaining having additional dependencies on some of the Google APIs. It wasn't enough to just download and install the items listed in the first response.
You have to download these.
Run Terminal
Navigate to the android/sdk directory
Type "android" You will get a gui. Check the "Tools" directory and the latest Android API (at this time, it's 4.3 (API 18)).
Click "Install xx packages" and go watch an episode of Breaking Bad or something. It'll take a while.
Go back to IntelliJ and open the "Project Structure..." dialog (Cmd+;).
In the left panel of the dialog, under "Project Settings," select Project. In the right panel, under "Project SDK," click "New..." > Android SDK and navigate to your android/sdk directory. Choose this and you will be presented with a dialog with which you can add the "Google APIs" build target. This is what I needed. You may need to do this more than once if you have multiple version targets.
Now, under the left pane "Modules," with your project selected in the center pane, select the appropriate module under the "Dependencies" tab in the right pane.
Just in case someone is lost. For both new application or existing ones go to File->Project Structure. Then in Project settings on the left pane select Project for the Java SDK and select Modules for Android SDK.
Another way to identify the correct SDK is to install Android Studio, create a new project, go to project structure, SDK Location and find where the SDK was installed.
I found using the default installation process on a mac that the SDK home folder was in the /Users/'yourUser'/Library/Android/sdk folder. Make sure you have enabled your Mac to view the Library folder.
You just need to install Android development kit from http://developer.android.com/sdk/installing/studio.html#Updating
and also Download and install Java JDK (Choose the Java platform)
define the environment variable in windows System setting https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows
Voila ! You are Donezo !
I am having trouble installing the plugin, I have tried with and without https, http ect. I have downloaded the file and tried to install it that way.
Everytime the green bar at the bottom just doesn't move and then after about 10 mins i get this message.
Unable to read repository at http://download.eclipse.org/webtools/downloads/drops/R3.3.2/R-3.3.2-20120210195245/repository/content.jar.
Read timed out
Im using windows 7 and eclipse indigo.
Any ideas, Thanks
It might be that the repository is down for some time or your firewall blocks your connection with the repository.
Either way: read and apply "Troubleshooting ADT Installation" section of http://developer.android.com/sdk/eclipse-adt.html
In summary: you can always download the plugin and install it manually (by copying to a right folder).
Good luck!
Edit: how to install the plugin manually? The instruction is here again at section "Troubleshooting ADT Installation". If you happen to be too lazy to find the section, I copied the most relevant part for you:
Download the current ADT Plugin zip file from the table below (do not unpack it).
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Site dialog, click Archive.
Browse and select the downloaded zip file.
Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
Click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse