解决:ERROR: Cannot launch Jack server

问题重现:

Install: /home/dinphy/sm/out/target/product/ido/system/lib/libdl.so
java -Xmx3500m -jar /home/dinphy/sm/out/host/linux-x86/framework/jill.jar  --output /home/dinphy/sm/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.jack prebuilts/sdk/8/android.jar
nothing matches overlay file default_wallpaper.jpg, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxxhdpi-v4
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/dinphy/sm/out/host/linux-x86/framework/jack-launcher.jar -cp /home/dinphy/sm/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
make: *** [/home/dinphy/sm/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack] 错误 255
make: *** 正在等待未完成的任务....
warning: string 'gsm_alphabet_default_charset' has no default translation.
make:离开目录“/home/dinphy/sm”

#### make failed to build some targets (06:11:31 (hh:mm:ss)) ####

解决办法

Android M引入了Jack (Java Android Compiler Kit),在编译时会启动jack server,优化编译速度等。 
如果遇到jack编译错误,可以把$HOME/.jack中的配置文件中的SERVER=true设成false,不用jack,jack现在还不稳定。此外,M对应的是OpenJDK7

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值