============================================================================= For the user ============================================================================= First of all, make sure you have flycheck installed. Download Emacs package from: http://www.spawned.biz/flycheck-android/flycheck-android-experimental.tar Install using 'package-install-file. Add the below to your Emacs init file somewhere: (add-to-list 'java-mode-hook '(lambda () (require 'flycheck-android-experimental))) = Then you have two choices, the most direct is to include flycheck = plugin directly to your project: Then, in your root build.gradle, add: buildscript { repositories { maven { url uri('http://www.spawned.biz/the_jk/repo') } // ... } dependencies { classpath 'org.thejk:flycheck-android-experimental:0.1' // ... } } allprojects { apply plugin: 'org.thejk.flycheck-android-experimental' } = Or you can apply it to your gradle init script, applying the task = to *all* projects Put in $HOME/.gradle/init.gradle or $HOME/.gradle/init.d/flycheck-android.gradle: initscript { repositories { maven { url uri('http://www.spawned.biz/the_jk/repo') } } dependencies { classpath 'org.thejk:flycheck-android-experimental:0.3.16' } } apply plugin: org.thejk.FlycheckAndroidExperimentalInitPlugin That should be it. = If you have product flavors you might want to specify which = variant should be used. (add-to-list 'java-mode-hook '(lambda () (progn (require 'flycheck-android-experimental) (setq flycheck-android-java-variant "devArm7Debug")))) = If you have a large project the default of always running generate*Sources = before checking the file might slow things down, if so set skip-gen (add-to-list 'java-mode-hook '(lambda () (progn (require 'flycheck-android-experimental) (setq flycheck-android-java-skip-gen t)))) = If you use checkstyle, you can expand the java-mode-hook: (add-to-list 'java-mode-hook '(lambda () (progn (require 'flycheck-android-experimental) (setq flycheck-android-java-checkstyle-jar "tools/checkstyle/checkstyle-6.5-all.jar" flycheck-android-java-checkstyle-path "tools/checkstyle" flycheck-android-java-checkstyle-config "checkstyle-config-android.xml" flycheck-android-java-checkstyle-properties "checkstyle.properties")))) These are standard flycheck options so there are other ways to set them. If flycheck-android-java-checkstyle-jar is set checkstyle will be used, if it isn't set then the other options are ignored. flycheck-android-java-checkstyle-jar and flycheck-android-java-checkstyle-path are both relative the project directory. flycheck-android-java-checkstyle-config and flycheck-android-java-checkstyle-properties are both relative flycheck-android-java-checkstyle-path or if it's not set, the project directory. All options can be absolute paths. If flycheck-android-java-checkstyle-path is set it will be used as working directory otherwise the project directory is. ============================================================================= For the developer ============================================================================= Get the code at git://git.spawned.biz/flycheck-android-experimental.git Two important gradle tasks: ./gradlew publish Build the gradle plugin jar and upload the "../repo" repository by default. ./gradle packageLisp Build the Emacs package placing it in build/flycheck-android-experimental-0.3.16.tar