解析包错误
我是 Android 开发新手。我构建了一个使用 webview 访问网页的应用程序。它的最低sdk版本是7,即Android版本2.1。它在我的手机上运行,该手机是 droid x2 版本 2.3.4。但是,当我将其发送给拥有 android 2.2 的朋友时,安装屏幕上显示“解析包出现问题”。我在 #android-dev IRC 上询问过,他们不知道。请帮忙。 这是清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.alan.ALICE"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ALICE"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I am new to Android development. I built a app that accesses a webpage using webview. It's minimum sdk version is 7, which is Android version 2.1. It runs on my phone which is a droid x2 version 2.3.4. However, when I sent it to my friend who has android 2.2, it says Problem Parsing Package on the install screen. I have asked on the #android-dev IRC and they have no idea. Please help.
Here is the Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.alan.ALICE"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ALICE"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这通常是文件本身的问题,而不是sdk版本的问题。你是如何签名和打包apk的?尝试在 Eclipse 中右键单击您的项目名称并转到“导出”。
This is usually a problem with the file itself, not the sdk version. How are you signing and packaging the apk? Try right clicking on your project name in Eclipse and going to Export.