Questions tagged [android-jack-and-jill]

The Jack toolchain is deprecated. Jack and Jill was an experimental android build tool chain intended to add Java 8 features to Android. These tools created dex files directly from java source code, thus skipping dexing and proguarding steps.

From: http://tools.android.com/tech-docs/jackandjill

The Jack toolchain is deprecated, as per this announcement. However, you may continue to use it to enable Java 8 language features until the replacement becomes available.

Jack is an experimental Android toolchain that comprises a compiler from Java programming language source to the Android dex file format. Jack has its own .jack library format and provides most tool chain features as part of a single tool: repackaging, shrinking, obfuscation and multidex. Jill is a tool that translates existing .jar files to the .jack library format.

More information can be found on the official tech-docs.

65 questions
98
votes
8 answers

Android N Java 8 features (Jack compiler) and Kotlin interop

Update 3. KOTLIN IS NOW OFFICIALLY SUPPORTED FOR ANDROID DEVELOPMENT. BY GOOGLE. YAAAAAAAAS! Update 2: It looks like JetBrains is really committed to supporting Kotlin for Android in the long run. I'm a happy kotlin user :). Update: Hadi Hariri,…
Tudor Luca
  • 6,259
  • 2
  • 29
  • 44
36
votes
2 answers

How to perform minification and obfuscation with the JACK compiler?

Google has released a test version of their new JACK compiler for Android developers with Android Studio 2.1. My question is, how do we enable obfuscation for the APK with JACK? The article below says that JACK performs obfuscation natively and…
34
votes
3 answers

How to speed up Android Studio compilation process

Latest update: Check out Android Studio 2.0 (preview) Instant Run it is awesome!!!! I have found some tips (Building and running app via Gradle and Android Studio is slower than via Eclipse) to speed up the compilation process of Android Studio…
Ben Groot
  • 5,040
  • 3
  • 40
  • 47
27
votes
1 answer

Jack and Jill and destinationDir

Google has officially released Jack & Jill as mentioned on their blog . But if I use the following property : defaultConfig { applicationId 'xxx' minSdkVersion 10 targetSdkVersion 19 versionCode 162 versionName 'xxx' //…
mrroboaat
  • 5,602
  • 7
  • 37
  • 65
21
votes
2 answers

New Jack toolchain crashes when using android-apt plugin

I'm trying to build a simple project with the new Jack toolchain. My project relies on android-apt plugin (it uses some annotation processing tool, but build error occures, even before I tried to add this tool). Here is my module build script (I'm…
netimen
  • 4,199
  • 6
  • 41
  • 65
18
votes
6 answers

Android studio error when add java8 support

what's wrong with my Android Studio or my config? Error:(22, 0) Could not find method jackOptions() for arguments [build_1b0umrzpkhcolzr325bxbizec$_run_closure1$_closure5@41c39fc1] on project ':app' of type org.gradle.api.Project. and this is my…
life2015
  • 181
  • 1
  • 1
  • 4
17
votes
2 answers

Jack compiling taking forever

After upgrading my project to enable Jack and Java8 features, my 16gb macbook can't seem to build my project anymore. I see the memory usage getting higher and higher but the process gets stuck at the same point always. My Gradle console: Executing…
17
votes
1 answer

Android Jack mockito alternative

Maybe is too soon to ask, but as Jack and Jill was announced today I get very excited with it. I really want to go for it, but they also state: Various tools that read .class files (such as JaCoCo, Mockito, and some lint checks) are currently not…
Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96
15
votes
1 answer

Jack and Android - Lambda runtime failure until clean build

Seemingly at random, the apk that Android Studio installs is corrupted. It usually centers around lambdas (but it's a different one every time). I'm using Jack compilation and the latest version of everything (listed at the end). The problem…
colithium
  • 10,269
  • 5
  • 42
  • 57
14
votes
3 answers

Android Studio 2.2 and Jack are getting blocked by Avira Antivirus

So I update my project to use the new jack compiler, but for some unknown reason my AntiVir blocks the task transformClassesWithPreJackPackagedLibrariesForDebug It works if I disable AntiVir real-time protection. I really don't want to do that and I…
14
votes
1 answer

Lambda expressions crash with IncompatibleClassChangeError in Android when using jack

I am using Java 8 in my Android project. I have setup both Jack (In android application module) and Retrolambda (in other modules). The problem I am having is that my Lambda expressions crash in one specific scenario when I try to make it use class…
Team
  • 181
  • 4
13
votes
3 answers

Error:Data Binding does not support Jack builds yet

I am implementing DataBinding, it is working perfect, but it is not allowing me to use jackOptions. It throws error Data Binding does not support Jack builds yet while build. Here is my build.gradle android { defaultConfig { ... …
Ravi
  • 34,851
  • 21
  • 122
  • 183
13
votes
4 answers

Error using Jack compiler - app/build/intermediates/packaged/debug/classes.zip' is an invalid library

I am getting these errors while using Jack compiler, but I don't understand what is the problem: Error:Library reading phase: file '/Users/daniele.vitali/Development/android-studio/INTROCKAND/app/build/intermediates/packaged/debug/classes.zip' is an…
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
12
votes
2 answers

Crashlytics don't compile when using Jack

I tried to use new experimental tool chain for Android (Jack and Jill), but if fails to compile with: Error:Could not determine the dependencies of task ':app:crashlyticsStoreDeobsXXX'. > Task with path 'dexXXX' not found in project ':app'. I'm…
Michał Klimczak
  • 12,674
  • 8
  • 66
  • 99
11
votes
1 answer

Android JACK compiler error after upgrade to latest support library

--Android Studio 2.2.3 (Windows 10 64 bit) --Build Tools version 25 --Android Gradle Plugin Version 2.2.3 After upgrade to latest support libraries (25.1.0 from 23.4.0) and change of compile version (25 from 23) I get this…
1
2 3 4 5