Installing the ADT Plugin - android

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

Related

Errors after updating sdk with Eclipse

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.

Android SDK requires ADT version 23 or above

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.

ADT plugin for eclipse on Windows 7

Hi I am new to eclipse and android. Trying to setup the ADE on my Windows 7 laptop.
Eclipse is working fine.
Now I follow the procedure on http://developer.android.com/sdk/installing/installing-adt.html
Download the ADT Plugin
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.
SO FAR SO GOOD
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.
Here I get lost. When I restart Eclipse, ADT is apparently not present, because there is no Android App button under the File->New dropdown menu.
Can anybody tell me what to do to get it working?
Try
File->New->Project->Android->Android Application Project
It appears you didn't get the welcome screen that the following link mentions when eclipse restarts.
http://developer.android.com/sdk/installing/installing-adt.html
What you may need to do is go to : Window->preferences; search for android. There you ought to specify the Android SDK's location on your local disk. You then can follow the rest of the setup instructions detailed at the above link.
Hope this helps.

How to create New Android Virtual Device (AVD) on Mac?

I am using android-sdk-macosx to download from the internet, then installed Android SDK 2.2 and 2.1 successfully, then I tried to create new AVD on mac, but I don't have any idea about how to create AVD.
I tried this below mentioned for your reference:
Fig 1.0 Create new AVD
Fig 2.0 I tried to open SDK and AVD Manager in eclipse menu Window --> Android SDK Manager
In Eclipse, go to Windows Menu , Select Preference Option so, following dialog box will appear. Just select the Android-SDK folder using Browse Button.
After doing this step click on the "Apply Button",
Now, you will be able to create new AVD in your eclipse.
Note, I have upload this image using Windows System, but i am sure, MAC has some, same kind of menu option.
Follow this seven steps to fix this issues:
1. Start Eclipse, then select Help > Install New Software.
2. Click Add, in the top-right corner.
3. 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.
4. 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.
5. 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.
6. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
7. When the installation completes, restart Eclipse.
It looks like you need to configure Eclipse to tell it where the android-sdk-macosx directory is (this can be done in 'Window>Preferences>Android> SDK Location".
Also, take a look at this page.
In the screenshot Fig 4.0, there's an error message at the top of the widow, which probably explains why the apply button is not available.
While the message cannot be read completely, I think it says that your version of ADT (Android Developer tools) does not match your version of the SDK : I might want to try updating both .
Also, take a look at this question, which might be about the same problem.

Why doesn't Android appear in Eclipses' preferences?

I've installed the Android Developer tools as per the official instructions.
Why doesn't the tab appear in Windows->Preferences, as they said it should?
Remove the plugin, then restart as follows:
eclipse -clean
Now try reinstalling the ADT from the online installation
OR
Head over to Help -> Install New Software. Click on Available software sites. Delete the Android repo. Uncheck Indigo & Eclipse updates & recheck them. Now head back to Help -> Check for updates. Once done, add the Android repo again. Accept the license & you should be good to go.
Happy Coding..
This won't fix your issue directly, but I suggest your take a look at the MOTODEV STUDIO for Android. Essentially, it's a customized Eclipse IDE with all the Android tools preinstalled and many more of their own tools for app validation. I find their tools usefull, especially the code snippets and the app validator. I believe you will need to register to download, but it's a quick and free process and you can always use a temporary email service. Anyway, this should allow you to get up and running until you find your bug (even if I don't see why you'd switch back to plain eclipse).
MOTODEV STUDIO for ANDROID
Check your plugins directory, located in the folder you extracted the original eclipse zip file to.
For me it is located in
eclipse-java-indigo-SR2-win32-x86_64\eclipse\plugins
and I see the following files related to the ADT plugin
com.android.ide.eclipse.adt_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.ddms_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.hierarchyviewer_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.traceview_18.0.0.v201203301601-306762.jar
overlay.com.android.ide.eclipse.adt.overlay_18.0.0.v201203301601-306762.jar
Make sure you have files similar to these.
Now open a shell and run the following in your eclipse install directory
eclipse.exe -console
you should get the osgi (Open Services Gateway Initiative) console. Now you can see whether your bundles have unresolved dependencies and start them manually. So try
osgi> diag com.android.ide.eclipse.adt
and
osgi> start com.android.ide.eclipse.adt
and check the output.
Have you restarted eclipse after install of ADT plugin
I see you are on Windows, I had the same problem and in my case I had to run Eclipse as administrator to install the plugin, so uninstall it, restart eclipse as administrator and reinstall it. You don't need afterward to run eclipse as administrator just to use the plugin, its only required for the installation.
The root cause might be folders ownership problems, as quoted by others, when I had the same problem I tried setting folders ownership but I could not apply my permission changes so running as administrator eclipse was the easy way for me. If you are not allowed to run eclipse as administrator on your station then you should search on the ADT documentation which folder should be owned by the user running Eclipse.
Check the answers in this post:
Maybe going to choose Help > Check for Updates or reinstalling ADT plugin again works.
There are chances that the plugin may not have been correctly installed. Try reinstalling the ADT. Or in the help menu check for the updates nad try installing through it.
I hope it 'll solve your problem.
Which you are using eclipse id , i think you are not using proper id. For better reference visit below links
Hello-world-example
Installing-adt
Same problem here. I've solved it like these:
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.
Followed from here

Categories

Resources