I got problems when I was building Android Source Code. Here is my system status:
I downloaded the source code of Android platform from google official website, then :
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
after this, I found I have installed the OpenJDK-6, then I used Synaptic Package Manage to remove the OpenJDK-6.
Add JAVA_HOME and ANDROID_JAVA_HOME to my environment.
After All:
I type "make" in the Android working folder.
The errors here:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=1.6
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=Donut
============================================
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
target Package: AlarmClock (out/target/product/generic/obj/APPS/AlarmClock_intermediates/package.apk)
Exception in thread "main" java.lang.NoClassDefFoundError: com.android.signapk.SignApk
at java.lang.Class.initializeClass(libgcj.so.90)
Caused by: java.lang.ClassNotFoundException: sun.security.x509.AlgorithmId not found in gnu.gcj.runtime.SystemClassLoader{urls=[fileut/host/linux-x86/framework/signapk.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.90)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj .so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at java.lang.Class.initializeClass(libgcj.so.90)
make: *** [out/target/product/generic/obj/APPS/AlarmClock_intermediates/package.apk] Error 1
Thanks for your help in advance..
I have fix it.
just used the wrong version JDK.
Bookmarks