android Support library - android

When I want to create new android Project, everything is OK but after the last step (about activity) eclipse said it has problem and said:
this template depends on the android Support library, which is either not install, or the template depends on a more recent version than the one you have installed.
link
required version 8
installed version: not installed
and If I use "upgrade/install" bottom, eclipse said :Android Compatibility JAR not found.
I found this solution on the net but I could not use it:
Steps:
Run your Android SDK Manager
Find Extras > support Library and delete that particular Library
Now Relaunch Android SDK MAnager
Download the Extras > support Library present
there is sth important: I am in Iran, because of the boycott, we couldn't download easily.
I use these tools:
Java.SE.Development.Kit.v7.0.Update.5.x86_p30download.com.exe
Eclipse:
Version: Juno Release
Build id: 20120614-1722
ADT-20.0.0
platform-tools_r13-windows.zip
android-2.3.3_r02-linux.zip
tools_r20-windows.zip

I think you are correct about the way to solve the problem - you need to download a package with SDK Manager.
I'd tried to upload my libraries, but not registered at any file-upload services. So I will recommend you to use some ananymizers or smth like Tor ( http://en.wikipedia.org/wiki/Tor ) and download all necessary libraries for development.
Good luck.

try update your ADT plugins (currently 20.0.3), go to Eclipse > Help > Check for Updates, not sure if this is the place in Linux

This happened to me too, but now solved by Right click on SDKManager.exe then run as administrator and download your required packages
according to : http://comments.gmane.org/gmane.comp.handhelds.android.devel/220558

I had a same problem so i used proxy.
in Eclipse go to :
windows-->preferences-->general-->network connections
And for SDK manager
In the Android SDK Manager go to :
Tools-->options-->enter your proxy
Now you can update your eclipse and sdk with no problem
I hope this work for you:)

Related

Can't create an new android project in Eclipse

I'm having some issues with my eclipse. I can't create a new android project after installing all updates from SDK manager. Without updates it did work normally. Has anyone else is having this issue and may assist me in resolving it ?
Open SDK Manager and select Android Support Library under Extras. Other than that, you can try reinstalling the support library and then restarting eclipse.
After you have installed or updated SDK Manager. Do following:
Window -> Preferences -> Android
Verify SDK Location path is correct.
Help -> Check for Updates
Should pull updates as per your installed SDK.
Also noticed if your android plugin path has https it sometimes dont pull in updates due to changes in firewall settings, instead use http://dl-ssl.google.com/android/eclipse/
Hoping this helps.
Cheers !!
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.
Good luck..
The app you designed is specific to a version. When you update the SDK, you've changed the version of your plug-in but not the version your app is written in. You can change the version, but it will likely have problems (ours did).

ADT needs to update but find no update

Today I installed API8 from the SDK manager, previously I only had been working with API14. After the SDK manager was done, and upon restarting ADT I got this error:
This android SDK requires Android Developer Toolkit version 21.1.0
and above. Current version is 21.0.1.2012-12-6-2-58.
So I click to find updates but I get "no updates found".
I did the following:
Used the SDK manager to re-install android SDK tools (rev 21.1).
Used the SDK manager to re-install API8 and API14.
Still no go :(
I had the same issue. Please try the following in eclipse
Help --> Install new software
Then choose "Android Developer Tools Update Site - http://dl-ssl.google.com/android/eclipse/" from the drop down list and update the ADT
IF THIS THROWS ERROR Like this
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685
Modify http: to https:
Sample : https://dl-ssl.google.com/android/eclipse/
And then update ADT. This method worked for me.
You get that issue when your eclipse ADT plugin version doesn't match your SDK tools version.
Have you tried updating the ADT plugin in eclipse?
Help -> Install New Software and then using the ADT update site should work.
If you get a No Respository Found error using this site, you should use the HTTPS version instead.
If you're still having trouble getting it to install, you can download the zip standalone and manually install it. You can find the latest zip and installation instructions at the ADT troubleshooting page.
If problem in "http".
1) Help --> "Install new software" --> "Available Software Sites"
2) Click on "Android Developer Tools Update Site"
3) Click "Edit"
4) Mofify "http" to "https"
5) Click "Ok" --> "Ok"
6) Try update again.
I tried all methods mentioned here, but still without success.
What finally helped was the tip from No repository found error in Installing ADT in eclipse Indigo:
Uncheck “Contact all update sites during install to find required software”
you Should Update your ADT to Latest Version by below way.
Eclipse--> Go to Help--> Install New Software --> Add--> Inside Add Repository
Write Name="ADT"(as you want) and
Location="https://dl-ssl.google.com/android/eclipse/" --> after
loading some times you will get Developer Tools & NDK Plugins-->
checked both if you want to install Use NDK as future Use or checked
only developer Tool--> click Next--> Finish.
After this you can Update your SDK to latest Version.
Hope it will Help.
Got this one too, going from ADT 22.3 to 23.
Not sure what's keeping Eclipse from finding the updates (maybe some IDs changed or something), but the solution is to install the ADT plugins over the existing ones using Help -> Install New Software, just select the same site, no need to correct the URL from https to http or vice versa. The wizard will tell you there are a bunch of conflicts that'll result in removing the old versions of the plugins -- that's ok, go for it.
UPD Seemingly, (as at least one person downvoted the answer), installing new version over old one forcefully doesn't work for everyone. Here's the related bug where it's said that the old installation of Exclipse/ADT is hopelessly unupdatable and one should just download the new bundle to resolve this.
PS Anyway, you should be using Android Studio by now. Compared to Eclipse, it's a memory hog and has a very different feel to it and different hotkeys, but (as much as I hate to say it having been a snuggled up Eclipse user for a long time) it's way better, at least for Android development.
Same issue here, but luckily it is resolved now. The help->install new software and the android tool manager didn't help.
I re-downloaded the ADT bundle and simply copied over the failing installation, it works now.
I had the very same problem last weekend. Go to Help->Install new Software. Here use Android Developer Tools Update Site url - http://dl-ssl.google.com/android/eclipse/, two options should appear and I can't remember which one to choose ;) (It should be the one with DEV)
I don't think it is necessary but before I removed and downloaded the whole Eclipse with ADT. But it should not be necessary.

How to install older Android SDK in Eclipse

I'm working at the moment at a simple app in eclipse for android. Just receiving and sending data, and using the camera API.
I've set the minSDKversion to 8, because I think that has the widest user base. But at the beginning of the project eclipse was asking me which target SDK version I would use, and because I had just one installed (the latest 4.0.3) I've took this.
Now I'm asking me if it wouldn't be wiser to install a lower SDK, like Android 2.2, because it would be not that big (compared to the 4.0.3) and my app would not have included all the fancy new features, which are not used in any way?! Or is this complete nonsense I'm talking here, and just should take my 4.0.3 SDK? When not, how can I install a lower version? Help -> SDK Manager is not showing old SDKs...
Here is a very helpful link that will probably answer your question: http://developer.android.com/sdk/installing/adding-packages.html
Basically, open up the Android SDK manager and it should give you a list of packages that you can install! From there you can choose old SDKs!
hey i faced the same issue as yours
usually while updating due to this error , it is unable to fetch the older SDKs
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found
This is how you can fix it :
1) Go to Window > AndroidSDK Manager
2) select tools> options
3) set the proxy (if u r sitting behind proxy)
4) in checkboxes check Obsolete option (in Android SDK Manager)
5) go to Packages > reload (in Android SDK Manager)
This worked for me
In case you are using windows7 .
Go to Android SDK Manager location > right click > Run as Administrator
Best Regards,
Ashwani kumar
I was having a problem with this also. I tried all of the things listed in the other answers here and nothing worked. I went into Tools/Options (in the Android SDK Manager) and checked "Force https:// sources to be fetched using http://" and reloaded and the older APIs magically appeared.
if u want minSDKversion from its maxSDKversion
1.select maxSDKversion and delete all old pakages .
2. after doing it sdk manager will show all its older versions .
3. select required version and install all packages again.
:) :)
it worked for me .. just try .

Android SDK and AVD Manager installation

I am new to android development.
Have tried a couple times downloading the Android SDK and ADT plugin for Eclipse
In the Android SDK and AVD manager load fine but will not load any available packages.
Show:
- Android Repository
--"Some packages were found but are not compatible updates"
In the installed it shows 1.5 to 2.3 SDK platforms.
How to I get them available.
Appreciate help.
Thanks,
Alex
You can use following step:
1. window ->
2. customize perspective ->
3. command group availability tab ->
4. on the check box android SDK and AVD manager check it ->
5. click on ok
I had the same issue. Googled arround found nothing, and gues what:
It was the a checkbox in the main Android SDK and AVD Manager.
Click: available packages
Then select: Android Repository
Then you see the "some packages were found but are not compatible updates" message, which is why you created this question.
On the bottom of the form, you can see: 4 buttons and 1 checkbox.
Make sure you Uncheck: "Display updates only" when it is unchecked, you see the whole SDK list with Android 3.2 etc.
Steps for installing Development Environment.
Download Android SDK and Install it.
Install Android API’s for different android versions. The latest version is Android 2.3.
Download and Install Eclipse Install ADT plugin.
Create AVD (Android Virtual Device) for testing the applications.
I think you did not linked your Android SDK folder with Eclipse ADT plugin. Goto Window->Preference->Android browse your Android SDK if you have installed ADT plugin.
There are many resources available online. Here is a blog post where you find some good links to resources which help you in installing Android Development Environment.
Getting Started with Android
If you still didn't able to do it. Let me know your specific problem, where you got struck.
I think there is already an answer that probably works for most people (unchecking the box), but since that did not work for this install I have on Linux Mint, this did work:
(not my website)
http://blog.netscribe.us/blog/post/Step-by-Step-Guide-on-How-to-Install-Android-SDK-Offline-%28not-completely-offline%29.aspx
Basically, download the zip for the package you want and extract it to /platforms/.

android notepad tutorial - no build target available

when setting up the the notepad exercise (http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html) i am having problems getting past step 1 point 4. for build target it says no target available.
could someone offer any help please?
Might be a silly question, but have you downloaded the SDK and set up Eclipse with ADT? Have you been able to build the HelloWorld program?
You need to set your Android SDK location in Eclipse->Android preferences.
Eclipse->Window->Preferences->Android->SDK Location
You need to download at least one of the "essential SDK components" into your development environment:
http://developer.android.com/sdk/installing.html
Download one of the "SDK Platform Android" 1.* or 2.* from the Android SDK and AVD Manager (located on the toolbar towards the left - has a picture of a little Android guy with a down arrow). Once you have one of the platforms installed you will have a Build Target available in the list. I would just go ahead and download any available SDKs that you see in the under "Available".
Non of other answers worked for me. So here a short collection of them my solution at the end.
Checkliste
Android SDK installed? http://developer.android.com/sdk/installing.html
SDK Path in Eclipse: Eclipse->Window->Preferences->Android->SDK Location
Update Eclipse and Android SDK: Help > Check for Updates

Categories

Resources