I'm struggling to update my project to compile with Android Gradle Plugin 3.0.1. Facts:
app
project depends on a local library:lib
./gradlew assembleDebug
forapp
fails at compilinglib
with errorUnresolved reference: R
- Building
lib
as a standalone project succeeds package
inAndroidManifest
of either projects is the same- I tried to disable aapt2 (
android.enableAapt2=false
ingradle.properties
) - no luck - May be relevant: Using Kotlin (1.2.21)
What am I missing? Seems pretty straightforward, yet I couldn't find the reason why R is not generated while building the app
, yet it is when building the lib
directly.