Android Eclipse - moving project caused all R reference errors

后端 未结 2 830
说谎
说谎 2021-01-23 22:54

I moved my project on Eclipse by Right Click project > Refactor > Move. This caused (at first) an exclamation mark to show next to project name. So I restarted Eclipse. This rem

相关标签:
2条回答
  • 2021-01-23 23:14

    Are you creating Project name folder to another workspace on move??

    0 讨论(0)
  • 2021-01-23 23:18

    Check if you are importing android.R instead of your generated R class.

    From Using Eclipse:

    Note: Eclipse sometimes likes to add an import android.R statement at the top of your files that use resources, especially when you ask eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.

    In the other hand, check if you have any errors in a xml file (but it shouldn´t allow you to generate the R.java file)

    0 讨论(0)
提交回复
热议问题