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

后端 未结 22 2804
眼角桃花
眼角桃花 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:48

    I'm running the most current version of AndroidStudio to date (11/10/2015) -- v1.4 (build AI-141.2288178, built on September 28, 2015) and I built my project and everything worked fine. Then after a few hours of my computer being inactive I came back, edited some code that had nothing to do with the support libraries and started seeing :

    cannot resolve symbol 'fragmentactivity' and I was seeing red highlighted items related to fragmentactivity in the AndroidStudio editor.

    The solution was to simply do a

    Build...Rebuild Project...

    I only mention this so others might see it and know it is happening out there.

提交回复
热议问题