Valid sdkVersion for slideme.org

佐手、 提交于 2020-01-15 08:11:06

问题


I am trying to upload an apk to slidme.org

http://slideme.org/node/add/mobileapp

But I get this validation failing

Your application must have a valid sdkVersion set. You need to edit your AndroidManifest.xml file to fix this, and then upload again the .apk file.

What is the problem with my manifest ?

<application
    android:screenOrientation="portrait"
    android:icon="@drawable/icon"
    android:label="@string/app_name" >
    <activity
        android:screenOrientation="portrait"
        android:label="@string/app_name"
        android:name=".Start" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

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


回答1:


Solved it by removing minSdkVersion. and refered targetSdkVersion to min version. So in your case it will become




回答2:


I had similar problem and solve it by: remove:

minSdkVersion 15
targetSdkVersion 28

from gradle. and adding :

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

to manifest. It seems slideme isn't up to date...



来源:https://stackoverflow.com/questions/8617684/valid-sdkversion-for-slideme-org

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!