Android Studio and android.support.v4.app.Fragment: cannot resolve symbol

后端 未结 22 2841
眼角桃花
眼角桃花 2020-12-01 06:03

I am tryng out Android Studio instead of Eclipse. I install it and then start a completely new project and follow the wizard. I add no code of my own.

Then, I right-

22条回答
  •  囚心锁ツ
    2020-12-01 06:51

    I encountered this issue and tried everything including File > Invalidate Caches but nothing worked. The reason this issue was happening for me was because I had external projects that were using a different AppCompat version to my main gradle file.

    After I updated all gradle files to be the same version the compile error went away.

提交回复
热议问题