6

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 ':app:transformClassesWithPreJackPackagedLibrariesForDebug'.
> com/android/jack/api/v03/Api03Config

Any ideas ?

My gradle file : http://pastie.org/private/ieb3wbkxhr1zbk0xr5dssw

Stacktrace from Gradle : http://pastie.org/private/agjsdikwk23zmaz2qz6xw

Computer is running WIN10 up-to-date and this bug is not related to my antivirus as it could be mentioned here: https://code.google.com/p/android/issues/detail?id=211732 (I don't have nay anyway :) )

Posted as a bug in Android Bug Tracker :

https://code.google.com/p/android/issues/detail?id=214156

Please star :)

Romain
  • 1,390
  • 1
  • 13
  • 27
  • Star please https://code.google.com/p/android/issues/detail?id=214156 – mixel Jun 24 '16 at 12:51
  • Don't have an answer, but this is working for me with plugins version 2.2.0-alpha2 and 2.2.0-alpha3. Not with 2.2.0-alpha4 – G. Blake Meike Jun 24 '16 at 19:40
  • I'm also using 2.2 Preview 4 with the same target and build tools as you. I get this exception only if I run installDebug. When I use stacktrace this error is spit out Caused by: java.lang.ClassNotFoundException: com.android.jack.api.v03.Api03Config – zafrani Jun 24 '16 at 22:44
  • I noticed that `:app:transformClassesWithPreJackPackagedLibrariesForDebug` fails only if I run it from console. If you run it or some other task that depends on it like `assembleDebug` from `Gradle projects` tool window then it succeeds. – mixel Jun 25 '16 at 12:12
  • @mixel I posted that myself, and any of the solution solved my problem. @ All : Even assembleDebug fails for me :( – Romain Jun 25 '16 at 13:16
  • 1
    Change gradle plugin version to 'com.android.tools.build:gradle:2.2.0-alpha3' solved this,but do not know why alpha4 failed. – droida Jul 06 '16 at 04:38
  • Yes, I know that rolling back to previous alpha works :( – Romain Jul 06 '16 at 09:37

1 Answers1

6

Fixed using 'com.android.tools.build:gradle:2.2.0-alpha5'

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
Romain
  • 1,390
  • 1
  • 13
  • 27