开发者

Android: Setting maxSDK version for Android 1.5 app

I've released an android app with the property

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

now my app seems to crash on android 1.5 devices (i guess because i use drawable-mdpi/hdpi,...)

so thought it would be good to release 开发者_StackOverflow社区the same app just for 1.5 devices (not using the mdpi/hdpi-directories). but when i use

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

it doesn't compile for 1.5 (it states that target and maxsdkversion are unknown properties). (if i set the jar-sdk to 1.6 it works fine).

So what is the best way to solve my problem? Is the app runable if I compile with 1.6 sdk but restrict it to sdk 3 (1.5) ? Or would this also crash since the sdk3 doesn't know the manifest-attributes "target/maxSdkVersion"?

Any other ideas how to solve this?


you need a drawable-v3 entry in res folder for android 1.5..

your minSdk will read 3 targetSDKVersion will read 4

That should get rid of all crashes..

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜