Android Studio cannot resolve R in imported project?

后端 未结 30 2207
名媛妹妹
名媛妹妹 2020-11-30 02:27

I\'m trying the new Android Studio. I\'ve exported a project from eclipse, using the build gradle option. I\'ve then imported it in Android Studio. The R.java file under gen

30条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 03:02

    Had this error when importing project from Eclipse. The reason was some of the xml files had errors. Check ALL your XML files for errors. Including androidmanifest.xml, and values, themes, styles, layouts folders, etc. Warnings in xml are ok, but errors will generate this error.

    Afterwards, do a Clean Project and rebuild.

提交回复
热议问题