Jack compilation stuck with AndroidStudio 2.3

好久不见. 提交于 2019-12-24 07:39:45

问题


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 :app:transformJackWithJackForDebug as long as I don't kill my java platform process.

It is the same problem than this post I guess but on stable release.

Any help will be greatly appreciated :)


回答1:


I killed many hours for the same issues after that i got link and its working fine at my end.

To use "Retrolambda" add few dependency.

  1. dependency to your build.gradle file.

    classpath 'me.tatarka:gradle-retrolambda:3.2.0'

  2. Added dependency into app/build.gradle file.

    apply plugin: 'me.tatarka.retrolambda'

  3. Please clean your build and run. it will work fine.

For more detail please visit below link:

  1. http://www.vogella.com/tutorials/Retrolambda/article.html
  2. https://barta.me/lambda-expressions-in-android/

all the best.




回答2:


With Android Studio 3.0 (plugin 3.0) they are recommending to disable the Jack compiler as its been deprecated.



来源:https://stackoverflow.com/questions/42653003/jack-compilation-stuck-with-androidstudio-2-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!