开发者

android version required

开发者 https://www.devze.com 2023-04-08 20:17 出处:网络
I have created and published an application on the market... However, on the market page it says: \"Version required 1.0\" while I know it needs at least version 2.0 (level 8) as it uses google maps..

I have created and published an application on the market... However, on the market page it says: "Version required 1.0" while I know it needs at least version 2.0 (level 8) as it uses google maps..

I know that I have to include in the manifest file something like this: I have tried to change the number 1 for another, but if I do it, the app开发者_如何学运维 crashes straight away with the following message:

android.view.InflateException: Binary XML file line #154: Error inflating class

Has anybody came across something similar?

Thanks


In your AndroidManifest.xml file, you need to include android:minSdkVersion and <uses-sdk> element. For example, I have this in my AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:minSdkVersion="4"
    ...
>
    ...
    <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="7"/>
    ...
</manifest>

Have a look here for more details: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

0

精彩评论

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

关注公众号