搜索

451

主题

663

帖子

5297

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5297
QQ
发表于 2021-6-4 11:31:05 6764 浏览 1 回复

Adnroid7.0 编译jack service报错

最近搭建jdk8的环境,通过apt-get insall openjdk-8-jdk 会出现jack service报错,具体报错提示如下图:



解决方法:
  1. //////////////////////openjdk-8 cause jack-server error

  2. sudo apt remove openjdk-8-jre
  3. sudo apt remove openjdk-8-jdk-headless
  4. sudo apt install openjdk-8-jre=8u162-b12-1 openjdk-8-jre-headless=8u162-b12-1
  5. sudo apt install openjdk-8-jdk-headless=8u162-b12-1
  6. sudo apt-mark hold openjdk-8-jdk-headless
  7. sudo apt-mark hold openjdk-8-jre
  8. sudo apt-mark hold openjdk-8-jre-headless
复制代码
  1. sudo add-apt-repository ppa:openjdk-r/ppa
  2. sudo apt-get update
  3. sudo apt-get install openjdk-8-jdk   
复制代码
  1. deb http:// bionic main universe
复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
手机微信同号:13682654092
回复

使用道具 举报

451

主题

663

帖子

5297

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5297
QQ
 楼主| 发表于 2021-6-4 11:31:38
  1.     FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar  2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
  2.     Jack server already installed in "/home/aplid/.jack-server"
  3.     Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/aplid/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
  4.     Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
  5.     SSL error when connecting to the Jack server. Try 'jack-diagnose'
  6.     SSL error when connecting to the Jack server. Try 'jack-diagnose'

  7. 复制代码
复制代码



手机微信同号:13682654092
回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表