I have migrated an old (2013) Java Android project to use Gradle as per the instructions in https://developer.android.com/studio/intro/migrate.
I have used the "Migrate by creating a new empty project strategy", the other strategy is "Migrate by creating a custom Gradle build file" but I have used the first.
After following the steps, I build my app in Android Studio and get the error "package R does not exist" in the Java files that use R.
I see that no gen directory is generated when building, so no wonder the R class is unknown. Any ideas I might try? Thanks a lot.