1 使用adb 寫在包再啟動程式 adb uninstall 包名
如果沒有adb命令:
(1)創建.bash_profile檔案(命令輸入 touch .bash_profile)
(2)打開.bash_profile檔案(命令輸入 open -e .bash_profile)
(3)在打開的.bash_profile檔案中編輯 : export PATH=${PATH}:/Users/你自己的用戶名/Library/Android/sdk/platform-tools
編輯完成之后,保存,退出;
(4)執行命令 source .bash_profile;
(5)輸入,adb version 出現版本號即成功 最后執行 adb uninstall 包名 輸出Success 再重新啟動程式
2 在Manifest.xml里有沒有宣告兩個Activity作為Launcher
3 在清單中,將你的第一個啟動類,加上過濾代碼 復制整個intent-filter 添加到你的第一個啟動類中
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/384311.html
標籤:其他
