JetPro
JetPro

Reputation: 1054

Cannot create a new Android Project using Eclipse

I recently updated my sdk version from 18 to 20.

I tried to create a new Android Application Project. I filled up all the needed fields to create a new project but when I came to the last page of the creating a new Android Application Project, this appears:

" This templates depends on the Android support library, which is either not installed, or the template depends on a more recent version than the one you have installed.

Required version: 8 Installed version: Not installed "

Then it also displays this link. http://developer.android.com/sdk/compatibility-library.html

It also has two buttons:

  1. Install/Upgrade
  2. Check again

When I click the first button, it's not downloading, installing or upgrading any of my software. And this messages display to my Console:

[2012-07-15 21:55:08 - SDK Manager] Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
[2012-07-15 21:55:16 - SDK Manager] Fetched Add-ons List successfully
[2012-07-15 21:55:16 - SDK Manager] Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
[2012-07-15 21:55:37 - SDK Manager] Done loading packages.
[2012-07-15 21:55:37 - Android Compatibility JAR not found:] D:\Software\Eclipse\v4\android-support-v4.jar

The button two does not do anything at all.

I downloaded the compressed file 'android-sdk_r20-windows' and extracted it to my hard drive. I used it to download the following:

  1. Android SDK Tools
  2. Android SDK Platform-tools
  3. SDK Platform API8
  4. Google APIs 8

I don't understand what my problem is, my eclipse works properly when I still haven't updated it yet. Did I forget do download some required tools or something?

Please help me.

Add: My eclipse works fine when I imported my previous Android Applications (my app runs on my emulator), the only problem is that I can't create a new Android Application.

Here's my screenshot.

Upvotes: 21

Views: 32035

Answers (10)

geeky
geeky

Reputation: 11

Following steps worked for me:

  1. Goto Help > check for updates > Select Android Tools Development and install it
  2. Restart Eclipse
  3. Eclipse asked me to update Android SDK Tool. I clicked on ok
  4. Android SDK Manager opened and I selected the options to install and update.
  5. After finishing, I restarted eclipse and created new android project.

Upvotes: 1

FaTi
FaTi

Reputation: 29

i had some problem. So for resolve this problem I change folder tools (adt-bundle-windows-x86_64-20130911\sdk\tools) by http://dl-ssl.google.com/android/repository/tools_r22-windows.zip

Upvotes: -2

ngocquynh_183
ngocquynh_183

Reputation: 125

Step 1: Open Android SDK Manager. In the list of software, scroll down to Extras at the bottom >> and choose Android Support Library >> Delete Package >> Delete complete restart eclipse

Step 2: Open Android SDK Manager. In the list of software, scroll down to Extras at the bottom >> and choose Android Support Library >> InstallPackage >> Installl complete restart eclipse >> Done

Upvotes: 2

Jimbali
Jimbali

Reputation: 2548

I was having this problem on one machine, when logged on with an account with limited admin privileges. I had set up the proxy details in the SDK Manager options menu and set it to force http instead of https. The extras folder was coming up empty.

In the log I had a message saying that it failed to download "https://dl-ssl.google.com/android/repository/addons_list-2.xml" as the file was not found. I then went to tools->manage addon sites, then under user defined sites I added the URL "https://dl-ssl.google.com/android/repository/addon.xml" (Different from the file mentioned in the log but it seemed to work). When I exited that dialog it updated the list and the extras folder was now populated with items including the Android Support Library.

Upvotes: 0

Aiden Fry
Aiden Fry

Reputation: 1682

In fact I think there is a bug with the Text icon creator. Every time i try this it does not create the project properly even after doing all the re-installs as suggested by the other posts.

Upvotes: 0

bill davis
bill davis

Reputation: 323

I struggled with this for about an hour today and it started working. I think the key was to uninstall and reinstall the support library, then restart eclipse.

Note: I had to restart eclipse twice, after uninstalling the support library from within the SDK manager. Manually deleting the folder form terminal did not work for me.

Upvotes: 24

Gaurav
Gaurav

Reputation: 1710

Workaround that worked for me: - Delete the support library from the SDK manager - Create a new project & install the support library by clicking on "Install / Upgrade"

Upvotes: 0

Himanshu
Himanshu

Reputation: 1086

Possible duplicate here. This is strange but works.

Go the SDK_Folder/extra/android and rename the folder compatibility to support. After that, restart the Eclipse.

Upvotes: 1

user1374913
user1374913

Reputation: 13

Delete the Android Support Library from Extras-Android support Library..Then install it again..later you will be able to create new projects

Upvotes: 0

Michael Hampton
Michael Hampton

Reputation: 10000

Open SDK Manager.exe within the Android SDK r20 that you downloaded. In the list of software, scroll down to Extras at the bottom, and choose Android Support Library.

enter image description here

Upvotes: 6

Related Questions