安卓:设置maxSDK版本Android 1.5的应用 [英] Android: Setting maxSDK version for Android 1.5 app

查看:104
本文介绍了安卓:设置maxSDK版本Android 1.5的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发布了一个Android应用程序与属性。

I've released an android app with the property

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

现在我的应用程序似乎崩溃在Android 1.5设备(我猜是因为我使用的绘制,于mdpi /华电国际,...)

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

因此​​认为这将是很好的释放相同的应用程序只需1.5设备(不使用于mdpi / HDPI-目录)。但是当我使用

so thought it would be good to release 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" />

它不编译1.5(它规定的目标和maxsdkversion未知属性)。
(如果我的jar-SDK设置为1.6,它工作正常)。

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).

那么,什么是解决我的问题的最好方法?是应用程序可运行的,如果我用1.6 SDK编译,但限制它的SDK 3(1.5)?还是会这也崩溃,因为sdk3不知道清单的属性目标/ maxSdkVersion?

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?

推荐答案

您需要为Android 1.5在res文件夹中的绘制-V3入门..

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

您minSdk会读3 targetSDKVersion将读取4

your minSdk will read 3 targetSDKVersion will read 4

这应该摆脱所有的崩溃。

That should get rid of all crashes..

这篇关于安卓:设置maxSDK版本Android 1.5的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆