java - How to properly set up Lombok in Android Studio 3.0 -
i know doing wrong in lombok setup android studio 3.0 beta 2?
that's how gradle build file looks like:
buildscript { repositories { mavencentral() jcenter() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "io.franzbecker:gradle-lombok:1.10" classpath 'com.android.tools.build:gradle:2.3.3' } } allprojects { apply plugin: "eclipse" apply plugin: "idea" version = '1.0' ext { appname = "myappname" gdxversion = '1.7.0' } repositories { mavencentral() maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/releases/" } } } project(":desktop") { apply plugin: "java" dependencies { compile project(":core") compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxversion" compile "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-desktop" } } project(":android") { apply plugin: "android" configurations { natives } dependencies { compile project(":core") compile "com.badlogicgames.gdx:gdx-backend-android:$gdxversion" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-armeabi" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-armeabi-v7a" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-x86" } } project(":core") { apply plugin: "io.franzbecker.gradle-lombok" apply plugin: "java" dependencies { compile "com.badlogicgames.gdx:gdx:$gdxversion" compile "com.badlogicgames.gdx:gdx-freetype:$gdxversion" compileonly "org.projectlombok:lombok:1.16.18" } } tasks.eclipse.dolast { delete ".project" }
i have installed lombok plugin, , lombok stuff shows in ide, when want build project gradle can not find getters/setters created lombok. tried follow tutorials https://projectlombok.org/setup/android , other stack overflow pages setup, nothing worked. in android studio 2.3 couldn't enable annotation processing properly, that's why updated latest beta version, @ least works.
wiki
Comments
Post a Comment