can't resolve AppCompatActivity

后端 未结 30 1865
星月不相逢
星月不相逢 2020-12-04 17:43

After renaming application package name, Android Studio displayed this error can\'t resolve symbol AppCompatActivity

Things I tried: <

30条回答
  •  情书的邮戳
    2020-12-04 18:26

    Lets get going step by step: first clean project by using

    Build->Clean

    if this doesn't helps then use your second weapon

    File>Invalidate Caches/Restart...

    But the real problem begins when all the above options doesn't works so use your ultimate weapon close project and go to project location directory and delete

    .idea

    You can open your project now again. This worked for me and problem comes most often when you are working with VCS. And this problem is not associated with android component classes but also to the libraries, both shows the same error.

提交回复
热议问题