Questions tagged [jack-compiler]

Jack (Java Android Compiler Kit) is a now deprecated Android toolchain that compiles Java source into Android dex bytecode. It was intended to replace the previous Android toolchain, which consists of multiple tools, such as javac, ProGuard, jarjar, and dx.

Jack (Java Android Compiler Kit) is a now deprecated Android toolchain that compiles Java source into Android dex bytecode. It was intended to replace the previous Android toolchain, which consists of multiple tools, such as javac, ProGuard, jarjar, and dx.

The Jack toolchain provides the following advantages:

  • Completely open source

Available in AOSP; partners are welcome to contribute.

  • Speeds compilation time

Jack has specific supports to reduce compilation time: pre-dexing, incremental compilation and a Jack compilation server.

  • Handles shrinking, obfuscation, repackaging and multidex

Using a separate package such as ProGuard is no longer necessary.

22 questions
1
vote
1 answer

Android compile loop after added .jar files which use java 8

I need to use same nlp libraries in my android application. In particular these libraries need java 8. I added the .jar files in android project, added android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { …
Invictus
  • 426
  • 3
  • 13
1
vote
0 answers

Android Studio: Lint checks for Jack compiler

Android Studio reports this Lint error when I use try-with-resources: Try-with-resources requires API level 19 (current min is 17) This reports is wrong: since I use the Jack compiler, I can use this feature also for older API versions (at least it…
TmTron
  • 17,012
  • 10
  • 94
  • 142
1
vote
1 answer

NoClassDefFoundError for Android < 5.0

My app is crashing on Android < 5.0 but works for Android > 5.0. I'm using multidex and Jack compiler. defaultConfig { applicationId 'com.example.lb' minSdkVersion 15 //versions below 14 do not support multidex targetSdkVersion…
blavi
  • 531
  • 1
  • 10
  • 26
1
vote
1 answer

Jack compiler seems to ignore encoding compile option

I recently upgraded an Android project to use use the Jack compiler: jackOptions { enabled true } It uses box-drawing characters that are embedded in source files as string literals. Everything was fine pre-Jack. I used: compileOptions { …
colithium
  • 10,269
  • 5
  • 42
  • 57
1
vote
0 answers

Jack compiler and java 8 make Android apps grabled

When I started to use jack compiler and java 8 to develop an Android app, I found the normal words become garbled like this: This text should be a Chinese, but it became garbled. And this is my build.gradle: apply plugin:…
L. Swifter
  • 3,179
  • 28
  • 52
0
votes
1 answer

how to debug the Expected ), Expected { and Expected statement(do, let, while, return or if) errors in jack Programming Language

I am working on Jack's programming language and trying to make a hangman game code I have written the code for the game without graphical representation. but I can't find any help for debugging my code so far is class HangmanGame { field String…
0
votes
1 answer

Messed up encoding with Jack Compiler

After enabling Jack Options i can't print a String with special characters such as the euro sign (€) or Greek letters.I've tried to change encoding to UTF-8 with no luck.Any suggestions?Disabling Jack Options solves the problem, but i need Java 8…
tasgr86
  • 299
  • 2
  • 7
  • 17
1
2