解析包错误

发布于 2025-01-07 16:02:03 字数 1004 浏览 0 评论 0原文

我是 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 技术交流群。

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

发布评论

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

评论(1

美胚控场 2025-01-14 16:02:03

这通常是文件本身的问题,而不是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.

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