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

Instant Run is disabled when Jack compiler is used

I got this message in gradle : Instant Run is disabled when Jack compiler is used my compile time is taken too long . 3:54:11 PM Gradle build finished with 1 warnings(s) in 17m 15s 937ms I think it because this message. I'm worikng as offline…
S.M_Emamian
  • 17,005
  • 37
  • 135
  • 254
7
votes
1 answer

migrate from jack to native Java 8

I'm trying to use lambda expressions and streams in my Android project.I'm using streamsupport library for streams, and native Java 8 for lambda expressions. To be able to use Java 8 features I need to add compileOptions { sourceCompatibility…
GiorgiSh
  • 127
  • 11
6
votes
0 answers

Android jack and jill get stuck

I am trying to use Jack-Jill and Java8 for my Android app. Everything is good on my laptop but when I tried to run the project on CircleCI it's getting stuck on transformClassesWithPreJackPackagedLibrariesForDebug Here is my build.gradle apply…
6
votes
1 answer

Jack fails on Preview 4 with com/android/jack/api/v03/Api03Config error

I have an issue with the latest Android Studio (Preview 4) and compiling with Jack. I get this error : FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
Romain
  • 1,390
  • 1
  • 13
  • 27
5
votes
2 answers

Android jack internal unknown error 415

I'm building AOSP 8 in a Mac (macOS Sierra 10.12.6) and Jack is failing with an unknown internal error Internal unknown error (415), try 'jack-diagnose' or see Jack server log jack-diagnose shows this: ps: illegal argument: -o usage: ps…
5
votes
0 answers

how to pass 'eventBusIndex' parameter to EventBus annotation processor

I am just getting started to use the new Android Jack compiler and use the Greenrobot Eventbus. I got it working after some trial-and-error but it only seems to work, when I specify the eventBusIndex parameter in 2 places - see code below: android…
5
votes
1 answer

What are the advantages of using Jack and Jill?

After announcement of Android N, Google officially launching Jack toolchain with Android Studios 2.1. The main advantages of Jack (due to this page) are: Completely open source Available in AOSP; partners are welcome to contribute. Speeds…
Saeed Masoumi
  • 8,746
  • 7
  • 57
  • 76
4
votes
0 answers

Method reference calls wrong method

I'm writing an Android app and use net.sourceforge.streamsupport:streamsupport:1.5.5 I'm using Android Studio 2.3.3 with the embedded JDK, source and target compatibility are set to 1.8. Now I have a method reference Light::getColor that, when…
Michel Jung
  • 2,966
  • 6
  • 31
  • 51
4
votes
2 answers

Slow build gradle in android

I checked all of the questions with answers about slow gradle build . (For Example here , here and ...) .but build gradle in my project is too slow . sometimes which building takes about 5-8 minuets , i searched in many sites , and now im tired…
MrNadimi
  • 1,424
  • 4
  • 18
  • 33
4
votes
0 answers

Jack's translated lambda expression doesn't use more efficient approach when minSdkVersion set to 24

I'm currently looking at the bytecode that jack compiler generates for lambda expressions. Let's take the following plain Java class as an example: public class ForEach { public static void main (String[] args) { ArrayList
Alex Lipov
  • 13,503
  • 5
  • 64
  • 87
4
votes
1 answer

Compilation with Jack APIs v01 Fails - ConfigurationException: Error while parsing proguard-android.txt

I'm trying to compile my Android app with the new Jack Compiler. Minification with the default proguard android rules fails. The message I get is Error:Execution failed for task ':app:compileDebugJavaWithJack'. > java.io.IOException:…
Jon
  • 9,156
  • 9
  • 56
  • 73
3
votes
0 answers

Building Cordova Android with Java 8 without Jack

Up until now I have been using Java 8 features in my hybrid Cordova Android project - I have one custom plugin where I use Java 8 features such as try-with-resources. In order to do so all I needed to do, apart from ensuring that JDK 8 was…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
3
votes
2 answers

Error:Execution failed for task :app:transformJackWithJackForDebug - Android?

My gradle is like bellow : apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "xx.xx.xx" minSdkVersion 17 targetSdkVersion 25 …
3
votes
0 answers

Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Predicate

I have an external jar library . i can import this file in intellij idea without any problem with java 8 . but when i add this file to android studio , i got this Error Error:ApiClass.java:114-115: Lambda coming from jar file need their interfaces…
MrNadimi
  • 1,424
  • 4
  • 18
  • 33
3
votes
1 answer

Is Androids new Jack compiler really that slow?

On some of my Android projects I see that building got quite slow since using the new Jack compiler. I need it to use Java 8 features like lambdas. But the long building time is a bit disturbing. So I set up a new Android project. It contains just a…
unlimited101
  • 3,653
  • 4
  • 22
  • 41