ADT安裝好在Eclipse後運行模型Android提示Re-installation fai...

提示: Re-installation failed due to different application signatures. 解決方案

我在網上找到不少,說什麼能夠直接在真機中刪除該程序,從新執行便可,或在shell中直接adb uninstall <package name>後從新安裝。我一直不明白這句是什麼意思。這時我就按adb unistall 是什麼意思在google內查找,結果認我想出來了.html

 但 package name 又是什麼呢. 這時我想到AndroidManifest.xml的配置文件內有這個參數android

<?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>shell

這時先運行android模擬機,並在cmd內運行,固然你要定位adb.exe的目錄,我是放在C:\android-sdk-windows\platform-tools 下windows

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

從新運行就能夠了
app

 個人第一個Android應用,移動開發從如今開始google

相關文章
相關標籤/搜索