Slideme.org 的有效 sdkVersion

发布于 2024-12-23 01:22:14 字数 903 浏览 1 评论 0原文

我正在尝试将 apk 上传到 slidme.org

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

但验证失败

您的应用程序必须设置有效的 sdkVersion。您需要编辑 您的 AndroidManifest.xml 文件来修复此问题,然后再次上传 .apk 文件。

我的清单有什么问题?

<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" />

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" />

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠栀 2024-12-30 01:22:14

我有类似的问题并通过以下方式解决:
删除:

minSdkVersion 15
targetSdkVersion 28

从 gradle 中
并添加 :

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

来体现。
看来slideme不是最新的......

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

打小就很酷 2024-12-30 01:22:14

通过删除 minSdkVersion 解决了这个问题。并将 targetSdkVersion 引用为最低版本。
所以在你的情况下它会变成

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文