我正在尝试创建我的应用的第二个版本。我拿了Android Studio创建的文件夹。我成功地更改了清单中的包名称,并使用ctr-shift-f更改了每个实例。
我现在的问题是,当我构建应用程序并尝试在手机上运行时,我收到此错误:
Waiting for device.
Target device: htc-htc_one-HT359W907227
Uploading file
local path: /Users/Mike/Documents/beerPortfolio/beerportfoliofreev3/BeerPprtfolio/build/apk/BeerPprtfolio-debug-unaligned.apk
remote path: /data/local/tmp/com.beerportfolio.beerportfoliopro
Installing com.beerportfolio.beerportfoliopro
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.beerportfolio.beerportfoliopro"
pkg: /data/local/tmp/com.beerportfolio.beerportfoliopro
Success
Launching application: com.beerportfolio.beerportfoliopro/com.beerportfolio.freeBP.MainDrawer2.
DEVICE SHELL COMMAND: am start -n "com.beerportfolio.beerportfoliopro/com.beerportfolio.freeBP.MainDrawer2" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.beerportfolio.beerportfoliopro/com.beerportfolio.freeBP.MainDrawer2 }
Error type 3
Error: Activity class {com.beerportfolio.beerportfoliopro/com.beerportfolio.freeBP.MainDrawer2} does not exist.
答案 0 :(得分:0)
也许在Manifest xml中你没有正确更改Activity包吗?
设备shell无法找到活动:
com.beerportfolio.beerportfoliopro / com.beerportfolio.freeBP.MainDrawer2
所以请检查清单中链接的位置,并检查一切是否正确。