出错的地方
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=false设成false,不用jack,jack现在还不稳定。此外,M对应的是OpenJDK7
时间: 2024-10-13 21:24:30