开发者

Android - how to tell/set which API Level is targeted

开发者 https://www.devze.com 2023-03-26 11:01 出处:网络
well..kind of new to Android, using ant to build something I downloaded. how can I tell which API level is target ? I saw nothing about it in the build.xml file ..

well..kind of new to Android, using ant to build something I downloaded.

how can I tell which API level is target ? I saw nothing about it in the build.xml file ..

when I try to use classes from API Le开发者_C百科vel 8, I am getting symbol not found errors..

thanks


you have

<uses-sdk
    android:targetSdkVersion="4"
    android:minSdkVersion="3" />

in the AndroidManifest.xml

But if you are working with eclipse, you have to check that the jar file in Google APIs is correct. If you just change that number, and still use the old jar files, you will get the same errors.

you can change that in project > properties > android, and choose the api you want


You can specify it in the Android Manifest file:

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

You can also check the default.properties file are the root of your project. It contains a line

target=android-8
0

精彩评论

暂无评论...
验证码 换一张
取 消