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
1
vote
0 answers

Build fails with Jack compiler + Data Binding

I was using Databinding with Rxjava in my app & then decided to migrate from RxJava to RxJava2 with lambda. So I enabled jackOption & source compatibility. Now It fails to compile with following error: Error:Execution failed for task…
1
vote
0 answers

Jack compiler and JaCoCo code coverage

I am using jack compiler in my Android app. Here is a description of how to use JaCoCo with Jack compiler. But I don't understand it. There are talking about changing something in my make command. But I use gradle. Or do I have to build my own…
unlimited101
  • 3,653
  • 4
  • 22
  • 41
1
vote
0 answers

Lambda call on Android randomly fails

Just started using lambdas in a new project and stuck with the issue when app crashes with the following stack trace: I/art: Rejecting re-init on previously-failed class java.lang.Class D/AndroidRuntime: Shutting down…
Mikhail
  • 568
  • 1
  • 6
  • 22
1
vote
0 answers

Problems when running application with Jack and Retrolambda

I recently had a lot of problems trying to debug in my application when using Retrolambda, because of that I wanted to include Jack on my Gradle for debugging purposes. jackOptions { enabled true } Because of that, I have been going through this…
1
vote
2 answers

Jack compilation stuck with AndroidStudio 2.3

I have upgraded my AndroidStudio today to latest stable version 2.3 (with gradle plugin 2.3.0 and gradle 3.3): now, I am not able to build my project which ran fine under AndroidStudio 2.2.3. When I try, I am stuck at…
1
vote
2 answers

I am getting internal compiler error

[ 34% 16888/49032] Building with Jack:...l_intermediates/with- local/classes.dex FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/core- all_intermediates/with-local/classes.dex.rsp java.lang.AssertionError at…
Mohd Faraz
  • 11
  • 1
  • 4
1
vote
1 answer

Compiling Android N without Jack

I am trying to compile Android N while disabling Jack by setting: ANDROID_COMPILE_WITH_JACK := false in aosp/build/core/combo/javac.mk. While compiling APP, there is always the error msg: ninja: error:…
Simmis
  • 41
  • 4
1
vote
0 answers

Can't compile okhttp with jack enabled

My project was working great but then i decided to enable jack, after this i got the following error: The type com.squareup.okhttp.OkHttpClient cannot be found in source files, imported jack libs or the classpath. I'm using build tools 25.0.1 and…
AmirG
  • 615
  • 8
  • 18
1
vote
0 answers

Compilation error with Jack compiler and generics

I'm using an ORM for android called Squeaky and it generates code to avoid using reflection. The generated code worked ok when I wasn't using the new jack compiler but with it I get these errors: ERROR:…
Auras
  • 7,556
  • 3
  • 25
  • 23
1
vote
0 answers

Compiling android application using Java 8

My application is not yet migrated to gradle, we still use Ant build script. Recently one of our dependent libraries started using Java 8 features. In order to compile using Java-8 lib, configured ant script to use java 1.8. with this change, the…
R K
  • 21
  • 5
1
vote
1 answer

android-apt & jack and jill

Android Studio 2.2 Gradle Android Tools 2.2.0 Gradle Wrapper 2.14.1-all I am using apt plugin to compile ButterKnife ( version 8.2.1 ) library and I want to use lambda with jack and jill support. android apt plugin apply plugin:…
okarakose
  • 3,692
  • 5
  • 24
  • 44
1
vote
3 answers

Android Studio build errors with jack enabled

So i recently switched my Android Studio default JDK to Java 8, so I could use Lambda expressions. I had to enable Jack to let the gradle build, but now when I try to rebuild my applicaiton, I am getting about 3 different errors that seem to be…
1
vote
0 answers

Android build fails in Ubuntu Docker container when Gradle runs transformClasses

My Android project gets built fine on a Windows dev machine with lots of RAM. But in a simple Docker container (FROM ubuntu:xenial + Android SDK) gradle build (./gradlew assembleTrunkDebug) fails on 58% while executing the…
Galya
  • 6,294
  • 6
  • 27
  • 45
1
vote
1 answer

Jack doesn't seem to obfuscate the code by itself

I am using Android Studio version v2.1.2 and Proguard doesn't work when I try to sign the release build, the build fails dramatically. According to this link from developer docs Jack does obfuscation automatically. Handles shrinking, obfuscation,…
Arif Nadeem
  • 8,524
  • 7
  • 47
  • 78
0
votes
1 answer

What is a proper way to disable jack-server

I want to build Android 6, 7, and 8 without jack-server. Compiling Android 8 with make ANDROID_COMPILE_WITH_JACK:=false works. But this doesn't work on 6 and 7. Another question, is there any difference on output compiling with and without Jack?