Hi guys. I downloaded the Android 6.0 source yesterday and tried to compile it today, but I'm getting the following error:
Code:
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/system-api-stubs
FAILED: /bin/bash out/target/common/docs/system-api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/api-stubs
FAILED: /bin/bash out/target/common/docs/api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
I don't know what to do about this error, as I'm new to compiling ROMs.
I'm compiling on Linux Mint using openjdk-8:
Code:
openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b15)
OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)
Can anyone help me fix this? If you need anymore info about my current set up, please let me know.
Switch to JDK 7
Error compiling Android Source using make sdk
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
htmlDir not a directory: frameworks/base/docs/html-ndk
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at com.google.doclava.TypeInfo.getTypeArgumentMapping(TypeInfo.java:478)
at com.google.doclava.ClassInfo.justMyInterfacesWithTypes(ClassInfo.java:343)
at com.google.doclava.ClassInfo.selfMethods(ClassInfo.java:707)
at com.google.doclava.ClassInfo.selfAttributes(ClassInfo.java:927)
at com.google.doclava.ClassInfo.init2(ClassInfo.java:192)
at com.google.doclava.Converter$1.made(Converter.java:294)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.Converter.initClass(Converter.java:152)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.Converter.initClass(Converter.java:119)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter$5.make(Converter.java:520)
at com.google.doclava.Converter$Cache.obtain(Converter.java:671)
at com.google.doclava.Converter.obtainType(Converter.java:507)
at com.google.doclava.Converter.access$600(Converter.java:46)
at com.google.doclava.Converter$3.make(Converter.java:484)
at com.google.doclava.Converter$Cache.obtain(Converter.java:671)
at com.google.doclava.Converter.obtainField(Converter.java:473)
at com.google.doclava.Converter.convertFields(Converter.java:464)
at com.google.doclava.Converter.initClass(Converter.java:119)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.PackageInfo.ordinaryClasses(PackageInfo.java:240)
at com.google.doclava.PackageInfo.isHidden(PackageInfo.java:90)
at com.google.doclava.PackageInfo.isHiddenOrRemoved(PackageInfo.java:138)
at com.google.doclava.Doclava.choosePackages(Doclava.java:1097)
at com.google.doclava.NavTree.writeNavTree(NavTree.java:30)
at com.google.doclava.Doclava.start(Doclava.java:363)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
make: *** [out/target/common/docs/online-ndk-timestamp] Error 45
#### make failed to build some targets (29:28 (mm:ss)) ####
Java :
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-0ubuntu0.14.04.3)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
Iam using JDK 7 but still iam getting the below error .Any help/work around is appreciated
Related
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
tthtlc said:
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
Click to expand...
Click to collapse
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
shimp208 said:
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
Click to expand...
Click to collapse
My java version is the latest 1.7 (from Ubuntu repository):
Ubuntu 12.04.03, LTS, 64-bit
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
javac 1.7.0_51
As per this:
http://forum.pcsoft.fr/fr-FR/pcsoft...n-error-target-release-1-5-conflicts/read.awp
and this:
https://groups.google.com/forum/#!topic/android-platform/NHhin464dxc
It seemed that Java 7 cannot generate compatible Java 5 binaries, whereas Java 6 still can.
Ok, I shall try downgrading it to Java 6 than.
Am I right to say this?
HTML:
Docs droiddoc: /home/android/CM10/out/target/common/docs/api-stubs
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
make: *** [/home/android/CM10/out/target/common/docs/api-stubs-timestamp] Error 45
[email protected]:/home/android/CM10# Error occurred during initialization of VM
I try to build CM on VPS (it have 1 gb ram and one core cpu - only for test ). Can i build succesful CM on this machine?
refresh
here's my error, any help would be greatly appreciated.
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
system: ubuntu 14.10 building lollipop cm
Same thing with me.
jukiewalsh said:
here's my error, any help would be greatly appreciated.
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
system: ubuntu 14.10 building lollipop cm
Click to expand...
Click to collapse
Same here I think it is source deep
jukiewalsh said:
here's my error, any help would be greatly appreciated.
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
system: ubuntu 14.10 building lollipop cm
Click to expand...
Click to collapse
can you tell me how to solve the error?
jukiewalsh said:
here's my error, any help would be greatly appreciated.
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
system: ubuntu 14.10 building lollipop cm
Click to expand...
Click to collapse
Is it resolved ? How ?
Hi there all,
I have been trying for about a week to get a custom android 5 built for a client for their Xperia Z3 tablet i have followed all the instructions on the Sony website and am running Ubuntu 16, after getting the repositories and required sony Vendor files i finally get to the make -j4 command, this starts to run until it hits an error saying that there is no vendor file for scorpion_windy and then breaks the make process, my question is can i download this resource separately, and also if not how can i choose what files the make command uses can i not just skip the scorpion_windy file?
I am a complete noob and any assistance in this regard would be much appreciated!
Thanks in advance
The info on this thread is what I used http://forum.xda-developers.com/z3-...torial-stock-android-marshmallow-6-0-t3409486 It worked fine on LinuxMint KDE.
SGP611 Build errors
Hi There,
I appreciate the input, but i am attempting to compile the aosp archive, once i complete the setup and finally get to make -j4 the process runs along until it gives me an error regarding the file healthd and the specific error of battery monitor error, i have tried to do this in kit kat, jellybean and marshmallow now have all the sony device files followed the instructions here
developer.sonymobile.com/open-devices/aosp-build-instructions/how-to-build-aosp-marshmallow-for-unlocked-xperia-devices/
But no dice im pretty confused and frustrated at this point any thoughts would be very much appreciated
Can you post a copy of the error from the terminal console?
iancornelius said:
Can you post a copy of the error from the terminal console?
Click to expand...
Click to collapse
Hi There,
Thank you for your reply here is the error im getting
...
including ./vendor/sony/yukon-seagull/proprietary/Android.mk ...
including ./vendor/sony/yukon-tianchi/proprietary/Android.mk ...
No private recovery resources for TARGET_DEVICE scorpion_windy
make: *** No rule to make target 'external/openssl/flavor.mk'. Stop.
#### make failed to build some targets (01:02 (mm:ss)) ####
very frustrating when you learning
Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:50:56 (hh:mm:ss)
Any help would be much appreciated!
Monkybomb said:
Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:50:56 (hh:mm:ss)
Any help would be much appreciated!
Click to expand...
Click to collapse
I've recently built Nougat for my device and came across no errors and followed the guide to the single letter. Have you done everything it has asked to? Most importantly the first part regarding openjdk-8 and the other libraries to be installed.
Hi, I am building klte version of CrdroidAndroid ( a LineageOS based ROM) on a ubuntu 16.04 LTS VM.
I am getting the following error. I am not sure what to do here. I have been cleaning the build folder and ccache and trying to build. I keep ending at this error. Any help to solve this issue is greatly appreciated.
----------------------------------
/usr/bin/x86_64-linux-gnu-ld: /home/sadanand/crdroid/android/system/out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/allocator.o: relocation R_X86_64_PC32 against protected symbol `_ZN3art18g_malloc_allocatorE' can not be used when making a shared object
/usr/bin/x86_64-linux-gnu-ld: final link failed: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
------------------------------------------
Thanks