peichhorn / lombok-pg

Collection of lombok extensions
http://peichhorn.github.com/lombok-pg/
Other
326 stars 44 forks source link

Unable to run on android: #155

Open akoidan opened 6 years ago

akoidan commented 6 years ago

I have the following configuration with lombok: app/build.gradle

dependencies {
    compileOnly "org.projectlombok:lombok:1.16.16"
    annotationProcessor "org.projectlombok:lombok:1.16.16"
    //...

This works like a magic, now I want to use extra features from lombok-pg so I replaced the configuration above with:

dependencies {
    compileOnly 'com.github.peichhorn:lombok-pg:0.11.3'
    annotationProcessor "com.github.peichhorn:lombok-pg:0.11.3"
    //...

If I type: ./gradlew installDebug or ./gradlew test I get

 warning: Can't initialize javac processor due to (most likely) a class loader problem: java.lang.NoClassDefFoundError: com/sun/tools/javac/code/TypeTags

And errors that indicate that `lombok-pg doesn't generate methods:

error: cannot find symbol
            myData.setBody(response);
                         ^