现象:安装apk时,出现下列错误:
09:29:12 - ScanTest2] Uploading ScanTest2.apk onto device '040398DD0A018005'
[2013-11-19 09:29:12 - ScanTest2] Installing ScanTest2.apk...
[2013-11-19 09:31:13 - ScanTest2] Failed to install ScanTest2.apk on device '040398DD0A018005!
[2013-11-19 09:31:13 - ScanTest2] (null)
[2013-11-19 09:31:13 - ScanTest2] Launch canceled!
并且,导致手机直接重新启动,原来,是mainfest文件中指定的包名有问题。
修改:AndroidManiFest.xml:
com.aaa.scantest2.ScanActivity 改为:
com.example.scantest2.ScanActivity(这个包才是真正的ScanActivity所在的包)