今天在调试中遇到了“apk卸载后,重新安装失败,logcat显示Activity不存在的问题”,显示错误类似如下:
Error type 3 Error: Activity class MainActivity does not exist.
重新启动Android Studio及重新编译后均无效,Clean/Rebuild Project后恢复正常,可能是部分内容未卸载干净,Android Studio认为原应用存在导致的。
另有其他方法可参考stackoverflow内的回答,这些方法暂时还未尝试过,若Clean/Rebuild Project后仍不能正常工作的,请参考。
链接地址:http://stackoverflow.com/questions/20915266/error-type-3-error-activity-class-does-not-exist