Error: Activity class {xxx.java} does not exist

git切换到不同的branch之后,报下面的错误:
Error: Activity class {xxx.java} does not exist

解决方案:

首先clean 然后会删除build目录
Error: Activity class {xxx.java} does not exist_第1张图片
然后点击:Invalidate Caches
Error: Activity class {xxx.java} does not exist_第2张图片
Error: Activity class {xxx.java} does not exist_第3张图片

Android Studio重启,然后重新build即可。

你可能感兴趣的:(Android,Linux,android-studio)