Android Studio cannot resolve R in imported project?

后端 未结 30 2199
名媛妹妹
名媛妹妹 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:03

    I solve that problem setting JAVA_HOME, CLASSPATH.

    People sometimes skip JAVA_HOME and CLASSPATH when setting Java_path.

    So try to check Environment Variable.

    CLASSPATH -> .;

    JAVA_HOME -> C:\Program Files\Java\jdk(version) or where Java installed

    and then check the xml file which can have error(Do not naming well-known things such as button,text etc)

提交回复
热议问题