无法解析目标“android-19”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25025233/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to resolve target 'android-19'
提问by jason
I want to work with Android API 19. I changed inside project.properties file target=android-19. In AndroidManifest.xml. I have this :
我想使用 Android API 19。我在 project.properties 文件target=android-19 中进行了更改。在 AndroidManifest.xml 中。我有这个 :
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
But in project properties I have this :
但是在项目属性中我有这个:
How can I change API level to 19 there to get rid of the error in the title. Thanks.
如何将 API 级别更改为 19 以消除标题中的错误。谢谢。
回答by Raghuveer
Go to Windows -> Android SDK Manager Install the Android API Level you want, in this case 19.
Once you've finished installing, go to Window -> Preference -> Android. You should get a list of available targets. Click 'Apply' then 'Ok'.
Now right click your project, go to properties. Click Android. Choose your desired target.
转到 Windows -> Android SDK Manager 安装您想要的 Android API 级别,在本例中为 19。
安装完成后,转到 Window -> Preference -> Android。您应该获得可用目标的列表。单击“应用”,然后单击“确定”。
现在右键单击您的项目,转到属性。点击安卓。选择您想要的目标。
回答by Vicky
- Right click on your project
- Go to properties -> Click Android (Left pane)
- Select Your project target version.
- Restart the Eclipse
- Clean the project (click Project menu-> clean)
- Now run the project.
- 右键单击您的项目
- 转到属性 -> 单击 Android(左窗格)
- 选择您的项目目标版本。
- 重启 Eclipse
- 清理项目(点击项目菜单->清理)
- 现在运行项目。
回答by Hemanth G Nag
Window -> Preference -> Android. You should get a list of available targets. Click 'Apply' then 'Ok'.
窗口 -> 首选项 -> Android。您应该获得可用目标的列表。单击“应用”,然后单击“确定”。
Now right click your project, go to properties. Click Android. Choose your desired target.
现在右键单击您的项目,转到属性。点击安卓。选择您想要的目标。
回答by Ramoncho
Window->Preferences->Android and validate your sdk location after that open your Android SDK Manager and validate if you have installed API 19
Window->Preferences->Android 并验证您的 sdk 位置,然后打开您的 Android SDK 管理器并验证您是否已安装 API 19
回答by buxik
Check and add your SDK API20 to project, clean and build project.
检查并将您的 SDK API20 添加到项目、清理和构建项目。
You can ignore this warning
您可以忽略此警告
EDIT:
编辑:
If you can work with 19 you must install API 19 through Android SDK
如果您可以使用 19,则必须通过 Android SDK 安装 API 19