Open Alex009 opened 4 years ago
should be added into root build.gradle:
build.gradle
allprojects { afterEvaluate { dependencies { if(configurations.map { it.name }.contains("compileOnly")) { // fix of package javax.annotation does not exist import javax.annotation.Generated in DataBinding code "compileOnly"("javax.annotation:jsr250-api:1.0") } } } }
reason is:
error: cannot find symbol @Generated("Android Data Binding") ^ symbol: class Generated
should be added into root
build.gradle
:reason is: