且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

同时安装Android应用程序奇怪的错误?

更新时间:2022-10-17 15:57:12

毕竟这是在清单文件中的错误。这条线使得它

 <使用-SDK安卓的minSdkVersion =8/>
 

我试图部署Android 2.2的应用程序到手机上采用Android 2.1。其他项目(测试一个)是在的IntelliJ创建了默认情况下不强迫任何版本。

在我删除的行或更改的版本7,应用程序,没有任何问题进行安装。

所以,新手的错误:惭愧:。

In IntelliJ IDEA I exported signed application (created a new key, etc.), entered command adb install <my_app>.apk and got an error:

1990 KB/s (745096 bytes in 0.365s)
pkg: /data/local/tmp/myapp.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

Google doesn't seem to know about this error. I found the solution where application version in Manifest file was not an integer, but this is not the case with me.

Could I be making a mistake during the creation of new sign key???

EDIT: Here is my Manifest file.

<?xml version="1.0" encoding="utf-8"?>
<manifest
        xmlns:android="http://schemas.android.com/apk/res/android"
        package="org.example.app"
        android:versionCode="1"
        android:versionName="1.0"
        >
    <application
            android:icon="@drawable/icon"
            android:label="@string/app_name"
            >
        <activity
                android:name=".App"
                android:label="@string/app_name"
                >
            <intent-filter>
                <action
                        android:name="android.intent.action.MAIN"/>
                <category
                        android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>

        </activity>

        <activity
                android:label="@string/about"
                android:name="About"
                ></activity>
        <activity
                android:label="@string/preference"
                android:name="Preference"
                ></activity>
        <activity
                android:name="Empl"
                android:label="@string/empl"
                ></activity>
    </application>
    <uses-sdk
            android:minSdkVersion="8"/>

</manifest> 

After all it was a mistake in the manifest file. This line made it

<uses-sdk android:minSdkVersion="8"/>

I tried to deploy Android 2.2 app to a mobile phone with Android 2.1. The other project (the test one) was created in IntelliJ which does not force any version by default.

After I deleted the line or changed version to 7, app installed with no problems.

So rookie mistake :ashamed:.