Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
287 views
in Technique[技术] by (71.8m points)

Unable to resolve target 'android-XX'

I am importing a project. It comes with errors in last activity file and these are the following entries in console:

[2013-04-04 12:00:59 - AndroidFragment] Unable to resolve target 'android-15'
[2013-04-04 12:10:31 - AndroidFragment] Unable to resolve target 'android-15'

I have fixed project setup and select the available target version by clicking on:

Project > Properties > Android > Project Build Target > Version 

But nothing happens.

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. Right click on your project.
  2. Go to Properties.
  3. Choose Android on the left side.
  4. On the right, you can see a list of Android API versions. Choose the proper version (Android API 15).
  5. Click Apply.

If you don't see the proper version, click on the Window menu, go to Android SDK Manager and download Android API 15 (Android 4.0.3). Repeat the steps above.

In the picture below, you can see API 16; not 15. You can download API 15 using Android SDK Manager. If you already have it, click the check box next to Android 4.0.3, click Apply and then OK.

enter image description here

To download an SDK from the SDK manager in Eclipse, click on the Window menu, Android SDK Manager. You should see the following window. Check Android 4.0.3 which is API 15, and click Install.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...