Project imported from Eclipse for AndroidStudio has no reference R

4

I've imported a project from Eclipse to Android Studio , but it has no reference to the old R .

    
asked by anonymous 23.01.2015 / 11:58

2 answers

0

Perform the following steps:

  • Open Android Studio (Updated version v1.0.2 [CURRENTLY]);
  • Select the option - > NON ANDROID STUDIO PROJECT;
  • Navigate to the folder of your Eclipse project and select it;
  • Wait for the build through Gradle;
  • Synchronize Gradle after configuring the project;
  • Ready! : -)
  • 23.01.2015 / 13:19
    0

    One of the possible causes is some syntactic problem in one of your XML.

    Remember that the R.java file is a file generated to allow your Java code to reference XML elements. When there is a problem in XML, the R file can not be generated and therefore can not be imported.

        
    04.05.2016 / 01:07