同时安装Android应用程序奇怪的错误? [英] Weird error while installing Android app?

查看:111
本文介绍了同时安装Android应用程序奇怪的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IntelliJ IDEA的我出口签名的应用程序(创建一个新的密钥等),进入命令 ADB安装< my_app> .apk文件并得到了一个错误:

  

1990年KB /秒(在0.365s 745096字节)
  PKG:/data/local/tmp/myapp.apk
  失败[INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

谷歌似乎并不知道这个错误。我找到了解决方案,其中在清单文件的应用程序版本是不是整数,但这不是我的情况。

难道我要创造新的符号键???

中犯了一个错误

编辑: 这是我的清单文件。

 < XML版本=1.0编码=UTF-8&GT?;
<舱单
        的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
        包=org.example.app
        安卓版code =1
        机器人:VERSIONNAME =1.0
        >
    <应用
            机器人:图标=@可绘制/图标
            机器人:标签=@字符串/ APP_NAME
            >
        <活动
                机器人:名称=应用程序
                机器人:标签=@字符串/ APP_NAME
                >
            <意向滤光器>
                <作用
                        机器人:名称=android.intent.action.MAIN/>
                <类别
                        机器人:名称=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>

        < /活性GT;

        <活动
                机器人:标签=@字符串/约
                机器人:名称=关于
                >< /活性GT;
        <活动
                机器人:标签=@字符串/ preference
                机器人:NAME =preference
                >< /活性GT;
        <活动
                机器人:名称=EMPL
                机器人:标签=@字符串/ empl的
                >< /活性GT;
    < /用途>
    <用途-SDK
            安卓的minSdkVersion =8/>

< /舱单>
 

解决方案

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

 <使用-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:.

这篇关于同时安装Android应用程序奇怪的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆