Slideme.org 的有效 sdkVersion
我正在尝试将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有类似的问题并通过以下方式解决:
删除:
从 gradle 中
并添加 :
来体现。
看来slideme不是最新的......
I had similar problem and solve it by:
remove:
from gradle.
and adding :
to manifest.
It seems slideme isn't up to date...
通过删除 minSdkVersion 解决了这个问题。并将 targetSdkVersion 引用为最低版本。
所以在你的情况下它会变成
Solved it by removing minSdkVersion. and refered targetSdkVersion to min version.
So in your case it will become