zoukankan      html  css  js  c++  java
  • ubuntu 16.04tls 编译android 5.1.1报错

    报错:
    libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
    libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
    libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
    libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
    执行:
    cd源码目录
    1.
    cd  xxx/art/build/
    vim Android.common_build.mk    //修改第119行
    修改前:
    # Host.
    ART_HOST_CLANG := false
    ifneq ($(WITHOUT_HOST_CLANG),true)
    # By default, host builds use clang for better warnings.
    ART_HOST_CLANG := true
    endif
    修改后:
    # Host.
    ART_HOST_CLANG := false
    ifneq ($(WITHOUT_HOST_CLANG),false)
    # By default, host builds use clang for better warnings.
    ART_HOST_CLANG := true
    endif

    2.
    cp
    /usr/bin/ld.gold /home/bruce/aosp/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
    3.
    make update-api

    4.
    . buile/envsetup.sh
    lunch
    make -j12
    (cpu核心数*2)

    5.8.1编译报错

    Communication error with Jack server (56). Try 'jack-diagnose'

    执行
    cd prebuilts/sdk/tools/
    ./jack-admin start-server

    https://blog.csdn.net/u014770862/article/details/52624851

  • 相关阅读:
    Java:线程的六种状态及转化
    Java:多线程概述与创建方式
    小白学Java:RandomAccessFile
    如何用IDEA开启断言
    如何通过IDEA添加serialVersionUID
    小白学Java:I/O流
    更改IDEA相对路径
    小白学Java:File类
    小白学Java:内部类
    Leetcode数组题*3
  • 原文地址:https://www.cnblogs.com/Fightingbirds/p/11396892.html
Copyright © 2011-2022 走看看