Ubuntu16.04 complie Android6.0 problem solve , step

Firstly follow officail wiki to build ubuntu14.04 environment.
New 16.04 apt source cannot provide openjdk-7 ,add up a source

sudo add-apt-repository ppa: openjdk-r/ppa ###behind colon no need space
sudo apt-get update
sudo apt-get install openjdk-7-jdk

After installed , check the version of jdk present
sudo update-alternatives --config java
sudo update-alternatives --config javac


Android complie
error occure:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:51: recipe for target ‘out/host/linux-x86/obj32/lib/libart.so’ failed
make: *** [out/host/linux-x86/obj32/lib/libart.so] Error 1

reason:ubuntu16.04 clang problem

1.Off clang,gedit file art/build/Android.common_build.mk ,find out WITHOUT_HOST_CLANG
diff:
# Host.
ART_HOST_CLANG := false
ifneq ($(WITHOUT_HOST_CLANG),true)
# By default, host builds use clang for better warnings.

  • ART_HOST_CLANG := true+ ART_HOST_CLANG := false
    endif
  1. rebuild env
    sudo apt install git-core gnupg flex bison gperf build-essentialzip
    curl zlib1g-dev gcc-multilib g+±multilib libc6-dev-i386lib32ncurses5-dev
    x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev
    libxml2-utils xsltproc unzip m4 && sudo apt-get update

No need to make clean, continue make again .

在這個競爭激烈的IT行業中,擁有一些認證證書是可以幫助你步步高升的。很多公司升職加薪的依據就是你擁有的認證證書的含金量。EPIC COG170認證考試就是個含金量很高的考試。EPIC COG170 認證證書能滿足很多正在IT行業拼搏的人的需求。Fast2test可以為你提供EPIC COG170認證考試的針對性訓練。你可以先在網上免費下載Fast2test為你提供的關於EPIC COG170 認證考試的培訓工具的試用版和部分練習題及答案作為嘗試。

The analysis in the article is thorough, and I’ve gained a lot from it. The Exam JN0-452 Simulations test questions are free for all—your key to a successful career!

Your article is a true gem, I’m so grateful for your sharing! I got a promotion and raise through the New exam cram SAP-C02 sheet file. Now it’s free for everyone. Wishing you all career success and promotions!

Thank you for your article, it’s definitely been a wake-up call for me. The C_THR82_2505 test vce free exam is almost here. Hope I ace it!

Instant like; this content is too good. Reliable Data-Engineer-Associate dumps gives you rich content for free, hoping it supports your learning journey.