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
3
votes
2 answers

Compilation exception when Jack is enabled

I am using Gradle 2.14.1 and Android-Gradle plugin 2.2.3 on Android Studio 2.2.3. in a multi-module app. Enabling Jack throws the following exception (stacktrace included) : Executing tasks: [:MyApp:assembleDebug] Configuration on demand is an…
3
votes
0 answers

android studio compile errors not ordered and not clickable

I am using jack with android studio When I have compilation errors the errors are mixed in with the warnings and are thus annoying to locate and once located you cannot click on them to go to the relevant section in code See example below: I would…
wal
  • 17,409
  • 8
  • 74
  • 109
3
votes
1 answer

no line numbers (e.g. for Log.getStackTraceString) with Jack compiler

We've switched over to the Jack compiler for our Android app to take advantage of Java8 features. However when we enabled minification (minifyEnabled true) we saw our app crashing in seemingly random places (it was all working fine with old…
3
votes
1 answer

What is the minimum SDK version jack compiled code can run well on?

If I build my android project using the jack & jill toolchain I can set the minimum SDK version fairly low. When I have jack enabled via: android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility…
Dave Thomas
  • 3,667
  • 2
  • 33
  • 41
3
votes
1 answer

Android Jack Compiler not removing logs from proguard rules

I have tried using: -assumenosideeffects class android.util.Log { public static boolean isLoggable(java.lang.String, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); …
Antonio
  • 363
  • 3
  • 6
3
votes
2 answers

Disabling JACK in android compilation

Does anybody know how to completely disable jack while compiling AOSP (Master)? I've always had problems with jack, so I've just always turned it off by adding ANDROID_COMPILE_WITH_JACK := false in BoardConfig.mk (when compiling CyanogenMod). I'm…
Carlyle Felix
  • 31
  • 1
  • 1
  • 4
3
votes
2 answers

Is jack and jill for android compatible with byte code weaving?

I just read the new blog post of @eric lafortune about Jack and Jill's new compiler on Android. http://www.saikoa.com/blog/the_upcoming_jack_and_jill_compilers_in_android And as I am working intensively on a bunch of new technologies built on byte…
Snicolas
  • 37,840
  • 15
  • 114
  • 173
2
votes
1 answer

Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForArmv7aDebug'

So I came across this problem when I am clicking the play button on Android Studio in order to deploy to my device and I cannot figure out how to solve this. Please see print shot attached: I did take certain actions : Rebuild Project (Builds with…
2
votes
1 answer

Build errors when switching from buildToolsVersion '24.0.2' to anything higher

Build fails when switching to buildTooolsVersion 24.0.3 or higher with error messages relating to Default methods and Static methods "not supported in Android API level less than 24" Works fine in previous versions of Build Tools, up to 24.0.2 I am…
2
votes
1 answer

Android studio update 2.2. Runtime error: Jack transformation null

After I have updated to 2.2 I've got dex cannot parse version 52 bytecode android So I've tried to force usage of Java version 1.7 and I was able to pass the error but now I receive this : Error:Execution failed for task…
2
votes
0 answers

Android gradle build with Jack for Java 8 fails "importing types"

The build fails with a TypeImportConflictException which fires a LibraryReadingException. The error log is the following: http://pastebin.com/fZA643Tq Ive noticed that along with the exceptions there comes this message: see property…
Biel Simon
  • 173
  • 3
  • 11
2
votes
2 answers

where is the proguard mappings.txt file generated when using JACK?

I have been trying to use the latest JACK and JILL build system to for my android project. I know that JACK process includes the proguard processing. But after that i couldn't locate the mappings.txt file for back-tracking stack-trace of bugs…
2
votes
2 answers

Problems running Android app with Spock and Java 8

Here is my set up. I have an Android project with a couple of Java (not Android) modules. Recently I started using Spock (which is a testing framework based on JUnit and Groovy). On the Java modules I simply use the groovy plugin like this: apply…
pablisco
  • 14,027
  • 4
  • 48
  • 70
1
vote
1 answer

Do we need Jack to use Java 8 features to make a build using Android.mk?

I have an Android.mk file and I was trying to make a build for Android 8.1 where I was using RxJava but while building it, I was getting the error Lambda coming from jar file need their interfaces on the classpath to be compiled so, I searched a…
NiJ
  • 23
  • 6
1
vote
0 answers

AOSP + annotation processor + jack

How to get libraries requiring annotation processor (such as butterknife, dagger etc.) to be usable for an app in AOSP (N, in my case)? Jack seems to support annotation processor according to this, but I can't find the proper flags to make it…