安装错误:INSTALL_FAILED_UID_CHANGED

问题描述 投票:2回答:4

每次我打算使用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
4个回答
3
投票

最后,我在几次尝试后得到了解决方案,解决方案被重置为出厂设置电话和问题解决了。这不是一个好的解决方案,但这解决了我的问题。


1
投票

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


0
投票

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

Eclipse Installation error: INSTALL_FAILED_UID_CHANGED

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

emulator.exe -avd myAvdName -wipe-data

问候

克里斯托弗


0
投票

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

adb shell
cd /data/data
rm -rf com.company.appname
© www.soinside.com 2019 - 2024. All rights reserved.