why does R does not exist error come in android?

前端 未结 7 906
谎友^
谎友^ 2020-12-16 14:45
packages/apps/Myfolder/src/com/android/myfolder/MyFile.java:196: package R does not exist
                  addPreferencesFromResource(R.xml.myfile);
                        


        
相关标签:
7条回答
  • 2020-12-16 15:41
    1. Try Clean-> Build (If not just restart eclipse, it just worked!)
    2. In case you are importing project, make sure you choose proper Level.
    0 讨论(0)
提交回复
热议问题