The generated R class cannot be found (Android Annotations, AA and product flavors)
May 2015
There’s situation when you use android productFlavors with individual applicationId for each application (that’s reasonable when you generating some similar apps for Google Play) and using Android Annotations framework (AA).
Error:The generated ru.translator.ukrainian.R class cannot be found
It’s just because apt doesn’t know where look for your resource package so you should to point it explicitly:
apt { arguments { androidManifestFile variant.outputs[0].processResources.manifestFile resourcePackageName "ru.translates" // logLevel 'INFO' // logFile '/var/log/aa.log' } }
And that’s all!
Leave a Reply