【问题标题】:Installation error: INSTALL_FAILED_UID_CHANGED安装错误:INSTALL_FAILED_UID_CHANGED
【发布时间】:2013-08-28 12:56:58
【问题描述】:

每次我打算使用 Eclipse Juno 在我的设备上安装应用程序时都会遇到此错误。

安装错误:INSTALL_FAILED_UID_CHANGED

我还尝试卸载应用程序,清除项目,重新打开 Eclipse 并重新启动系统和手机。

问题依然存在。

logcat 说 未找到可撤销权限的内容提供商:file:///data/local/tmp/STU.apk 但我不明白他说什么(Eclipse)。

我现在不知道该怎么办。

请帮忙

编辑: 添加了 AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="amalgame.trainer.ultimate"
      android:versionName="1" android:versionCode="1">

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

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WAKE_LOCK"/>  


    <uses-feature android:name="android.hardware.camera" android:required="true"/>
    <uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
    <uses-feature android:name="android.hardware.telephony" android:required="false"/>

    <supports-screens
    android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:anyDensity="false"
    />

    <application      
        android:allowBackup="true"      
        android:icon="@drawable/iconfree4848"
        android:label="@string/app_name"
        android:theme="@style/CustomTheme" 
        android:logo="@drawable/iconfree4848"
        >
        <uses-library android:name="com.google.android.maps" />

        <activity
            android:name="amalgame.trainer.ultimate.TrainerActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" 
            android:configChanges="locale|orientation|keyboardHidden"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name="com.google.ads.AdActivity"

            ....
     </application>
</manifest>

【问题讨论】:

标签: java android logcat


【解决方案1】:

经过多次尝试,我终于得到了解决方案,解决方案将手机重置为出厂设置,问题解决了。 这不是一个好的解决方案,但这解决了我的问题。

【讨论】:

  • 真正的事情是从设备中删除应用程序文件夹。就我而言,我需要对手机进行 root。
【解决方案2】:

重启安卓设备并从设备中删除包文件夹后。我的问题解决了。

【讨论】:

  • 如何删除设备上的包文件夹?
  • 可以肯定,@user1182201 一定是在谈论有根手机
【解决方案3】:

请看这个问题 - 这应该涵盖你的问题:)

Eclipse Installation error: INSTALL_FAILED_UID_CHANGED

我之前也遇到过这个问题—— 最可靠的解决方案是使用擦除模拟器。

emulator.exe -avd myAvdName -wipe-data

问候

克里斯托弗

【讨论】:

  • 谢谢,但我正在使用设备电话 (Razr i),我应该如何在电话上修复(擦除数据)?
【解决方案4】:

我不得不从设备中删除应用数据,问题就解决了。 请谨慎使用 rm 命令,确保您的应用/包名称正确。

adb shell
cd /data/data
rm -rf com.company.appname

【讨论】:

  • 设备必须为此解决方案植根
猜你喜欢
  • 1970-01-01
  • 2023-03-24
  • 2014-01-20
  • 2013-03-28
  • 1970-01-01
  • 1970-01-01
  • 2021-03-16
  • 1970-01-01
相关资源
最近更新 更多