make iso_img TARGET_PRODUCT=android_x86 

하면서 만난 에러들 처리


Error : 

Notice file: frameworks/base/libs/androidfw/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libandroidfw.a.txt

Notice file: system/core/libutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libutils.a.txt

Notice file: system/core/libcutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcutils.a.txt

Notice file: system/core/liblog/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt

prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory


solution :
$ apt-get install build-essential

$ apt-get install g++-multilib


$ apt-get install git gnupg flex bison gperf zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 u-boot-tools minicom libncurses5-dev uuid-dev:i386 liblzo2-dev:i386


apt-get install 하는 도중에 다시 다음과 같은 에러를 만남

Error : 

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-30.54_amd64.deb  404  Not Found [IP: 91.189.88.153 80]


E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-30.54_i386.deb  404  Not Found [IP: 91.189.88.153 80]


solution :

  $ vi /etc/apt/sources.list

- deb http://security.ubuntu.com/ubuntu trusty-security main restrict

+ deb http://security.ubuntu.com/ubuntu trusty-security main

   $ apt-get update


   $ apt-get install git gnupg flex bison gperf zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 u-boot-tools minicom libncurses5-dev uuid-dev:i386 liblzo2-dev:i386


다시 다음과 같은 Error를 만남
Error :

target Export Resources: framework-res (out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)

/bin/bash: jar: command not found

make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 127


solution:
 $ sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/local/java/jdk1.7.0_60/bin/jar" 1;
 $ sudo update-alternatives --set jar /usr/local/java/jdk1.7.0_60/bin/jar;

Error :

libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

libcore/libdvm/src/main/java/java/lang/Enum.java:150: error: ordinal has private access in Enum

        return ordinal - o.ordinal;


solution : 
https://android.googlesource.com/platform/libcore/+/9c8864d39704b3d264ef9dfbdc1bfcfd8f1b6bb9%5E!/#F0

149     public final int compareTo(E o) {
-150         return ordinal - o.ordinal;
+150         return ordinal - o.ordinal();
151     }

Error : 
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/target/product/x86/obj/GYP/shared_intermediates/templates/org/chromium/base/ActivityState.java] Error 1

solution : 
  $ vi ~/.bashrc
added following lines in end
JAVA_HOME=/usr/lib/jvm/jdk1.7.0
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

  $ source ~/.bashrc

Error : 
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.util.ExceptionWithContext
at com.android.dex.util.ExceptionWithContext.withContext(ExceptionWithContext.java:45)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:377)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
at com.android.dx.command.dexer.Main.processClass(Main.java:682)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
at com.android.dx.command.dexer.Main.access$600(Main.java:78)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:596)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
Caused by: java.lang.NullPointerException
at com.android.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:87)
at com.android.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:75)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:277)
... 15 more
...while processing <init> (Lcom/android/internal/telephony/gsm/GSMPhone;)V
...while processing com/android/internal/telephony/gsm/GSMPhone$1.class

1 error; aborting

solution : 
java가 맞지 않는 것 같으니 guide 대로 다시 설치해보자
  $ sudo apt-get install openjdk-7-jdk
   개선사항 없음

source build/envsetup.sh
export ARCH=x86
lunch android_x86-eng


저작자 표시 비영리 동일 조건 변경 허락
신고
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by bluelimn

bluelimn

달력

최근에 달린 댓글

최근에 받은 트래백

글보관함


티스토리 툴바