0

我的 AndroidManifest.xml 中有以下内容;

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="cmb.app"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:targetSdkVersion="15" android:minSdkVersion="8" />

</manifest>

但是,Eclipse 给了我警告;

<uses-sdk> should specify a target API level (the highest verified
version; when running on later versions, compatibility behaviors may
be enabled) with android:targetSdkVersion="?"

我的项目构建目标是 Google APIs 4.0.3 (15),我最初将 targetSdkVersion 设置为 8,但将其更改为 15 并没有消除警告。

任何人都可以对此有所了解吗?

4

2 回答 2

0

还要检查project.properties,一旦你在manifest.xml中更新了项目目标,它也会反映在那里,如果没有,你可以自己修改它。

于 2012-05-18T09:50:29.090 回答
-1

Basically, the problem was that changes to xml files were not being noticed by the validator in Eclipse (although I can't confirm that the issue is actually with Eclipse). This happened for a number of files and re-building did not help. I ended up reloading the project or deleting and re-writing the files to fix it.

于 2012-09-20T13:35:03.577 回答