“R cannot be resolved” may have wrong build path or libraries import

后端 未结 2 1781

I know this question has been many times but trust me I have checked all. Most of the question suggests to remove import android.R , remove any error in the xml file

2条回答
  •  离开以前
    2020-12-12 03:52

    Make sure you installed the Android build tool form sdk manager

    project right click properties-> Java BuildPath select Library and add android-support.jar the follow these step.

    Go to Project->Properties->Java Build Path than select Order and export tab. Set android-support .jar library checked and up it into top of the list. And clean and rebuild..It works for most of the cases

    enter image description here

提交回复
热议问题