I import a project to Android Studio , but the R.java is always empty.
public final class R {
}
I have tried:
For me the problem with the R class has been related to automatically organized imports.
As AndroidStudio has the option to allow the automatic imports, it took the wrong R class and thats why the ids have not been found and Gradle was throwing errors!
So check if the import to the R class is referencing to the one you need.