ADT安装好在Eclipse后运行模型Android提示Re-installation fai...

你。 提交于 2019-11-30 11:42:50
提示: Re-installation failed due to different application signatures. 解决方案

我在网上找到很多,说什么可以直接在真机中删除该程序,重新执行即可,或在shell中直接adb uninstall <package name>后重新安装。我一直不明白这句是什么意思。这时我就按adb unistall 是什么意思在google内查找,结果认我想出来了.

 但 package name 又是什么呢. 这时我想到AndroidManifest.xml的配置文件内有这个参数

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


    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".ApiDemos"
                  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>
    <uses-sdk android:minSdkVersion="8"></uses-sdk>
</manifest>

这时先运行android模拟机,并在cmd内运行,当然你要定位adb.exe的目录,我是放在C:\android-sdk-windows\platform-tools 下

C:\android-sdk-windows\platform-tools> adb uninstall com.example.android.apis.

重新运行就可以了

 我的第一个Android应用,移动开发从现在开始


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!