moko-template icon indicating copy to clipboard operation
moko-template copied to clipboard

@Generated bug

Open Alex009 opened this issue 5 years ago • 0 comments

should be added into root 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

Alex009 avatar Apr 21 '20 04:04 Alex009