ADT plugin for eclipse on Windows 7 - android

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.

Related

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.

Error Message : This Android SDK requires Android Developer Toolkit version 22.6.1 or above

Recently I've encountered following error :
The strangest thing is that I've just updated some package from sdk via working eclipse. There was no information or warning that after this update current adt will crash. I've checked latest updates and can't find new adt even on google's page. Even new adb contain old adt.
From http://developer.android.com/tools/sdk/tools-notes.html:
Dependencies: Android SDK Platform-tools revision 18 or later. If you
are developing in Eclipse with ADT, note that this version of SDK
Tools is designed for use with ADT 22.6.1 and later. If you haven't
already, update your ADT Plugin to 22.6.1.
The only solution is to download new standalone eclipse and external plugin for it?
Does the android studio face the same problems?
Environment: linux x64.
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.
I reported this bug yesterday. Solution is to use Help -> Install new software option with httpS:// protocol (s is important). No special downloads or re-installations is needed, just choose the right update site.
The problem is that the default update site in Android ADT is
http://dl-ssl.google.com/android/eclipse/
but this site don't update correctly
And the solution is add a new Install site with protocol https
https://dl-ssl.google.com/android/eclipse/
Click in Help->Install New Software->Add
And use this site to update ADT
Issue : https://code.google.com/p/android/issues/detail?id=67325
To solve this problem, here I have covered steps, surely it will help you.
Please follow these steps:
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.
Update 27/03/2014
They released 22.6.2 and fixed this issue so update your ADT to new version.
You can see this thread : Cannot update from ADT 22.3.0. to 22.6.1
You can go to Window->Android SDK Manager and check tha what version you have.
In my case it shows I already have toolkit 22.6.1 installed but still get the error. Whether you already have it or not, you can do the following to fix.
Go to Help->Install New Software... In the dialog shown below, click on 'Add' button on the top right side.
Paste "https://dl-ssl.google.com/android/eclipse/" in Location. You can name it anything.
Click Ok and follow the dialog by clicking Next.
If prompted with a message sasying you already have it, just agree so that it gets updated (or installed if it wasn't there).
This should resolve the issue.
source : http://codewriterstips.blogspot.nl
if your android sdk is to old . you must download new android sdk in developer.android.com and , copy past some nececary folder on it .

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.

Installing the ADT Plugin

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

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