I'm getting this error when I try to compile VanirAOSP
Code:
/home/lozohcum/Vanir/out/target/common/obj/PACKAGING/public_api.txt:44533: warning 21: Method java.util.zip.ZipFile.ZipFile no longer throws exception java.util.zip.ZipException
/home/lozohcum/Vanir/out/target/common/obj/PACKAGING/public_api.txt:13415: error 13: Method android.media.audiofx.LoudnessEnhancer.getTargetGain has added 'final' qualifier
/home/lozohcum/Vanir/out/target/common/obj/PACKAGING/public_api.txt:13416: error 13: Method android.media.audiofx.LoudnessEnhancer.setTargetGain has added 'final' qualifier
prebuilts/sdk/api/19.txt:25: error 10: Removed field android.Manifest.permission.BIND_NFC_SERVICE
prebuilts/sdk/api/19.txt:13231: error 10: Removed field android.media.audiofx.AudioEffect.EFFECT_TYPE_LOUDNESS_ENHANCER
prebuilts/sdk/api/19.txt:13389: error 9: Removed public constructor LoudnessEnhancer(int)
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
make: *** [/home/lozohcum/Vanir/out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38
I can compile AOSP 4.4.4 and CM11 4.4.4 with no errors, only Vanir fails. Doesn anyone know how can I overcome this?
I am attempting to build CM 12 for my phone as the latest prebuilts I could find were all for CM11. I am following the Cyanogenmod Wiki build guide for my phone and my build errored out thusly:
Code:
device/samsung/d710/selinux/system.te:2:ERROR 'unknown type system' at token ';' on line 11185:
allow system input_device:chr_file { read ioctl write open };
#line 1 "device/samsung/d710/selinux/system.te"
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/sarah/android/system/out/target/product/d710/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
It seems odd that 'system' would be an unknown device type, and I haven't edited the file, this is all what downloaded automatically. What can I do to fix this?
prebuilts/sdk/api/23.txt:41128: error 8: Removed public class android.widget.SeekBar
prebuilts/sdk/api/23.txt:41136: error 8: Removed public class android.widget.SeekBar.OnSeekBarChangeListener
[33mhost C:[0m toybox-instlist <= external/toybox/scripts/install.c
make[1]: Entering directory '/home/Builder/CypherOS/kernel/motorola/msm8916'
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
build/core/tasks/apicheck.mk:46: recipe for target '/home/Builder/CypherOS/out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp' failed
make: *** [/home/Builder/CypherOS/out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp] Error 38
make: *** Waiting for unfinished jobs....
[36mImport includes file:[0m /home/Builder/CypherOS/out/target/product/surnia/obj/EXECUTABLES/recovery_intermediates/import_includes
/home/Builder/CypherOS/out/target/common/obj/PACKAGING/public_api.txt:1696: error 17: Field android.R.id.monitor_box has changed value from 16908401 to 16908349
/home/Builder/CypherOS/out/target/common/obj/PACKAGING/public_api.txt:1705: error 17: Field android.R.id.seek_bar has changed value from 16908402 to 16908350
/home/Builder/CypherOS/out/target/common/obj/PACKAGING/public_api.txt:1812: error 17: Field android.R.string.default_string has changed value from 17039384 to 17039385
******************************
You have tried
"make update-api" doesn't work either
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.
Hello, I have more than three weeks with this problem.
I want to compile AOSP Android 6.0.0_r1 (openjdk-7jdk) for a LG K8 2017 phone (LGX240F) taking the free source code from LG.
I have followed all the existing tutorials in this forum I currently use Azure a computer with Ubuntu Server 16.04, 16GB Ram and 4 Core processor.
The problem that arises is that after 30 minutes elapsed sometimes 1 hour of compilation I receive the error 41 I have searched for different solutions and none of them has worked for me.
Code:
Last login: Wed Oct 31 14:00:30 2018 from 190.62.244.75
[email protected]:~$ screen -rx
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/am_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/appops_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/appwidget_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/bu_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/bmgr_intermediates/with-local/classes.dex
ERROR: /mnt/Storage/Android6/frameworks/base/test-runner/src/android/test/mock/MockPackageManager.java:886: The method checkAPKSignatures(String) of type MockPackageManager must override or implement a supertype method
build/core/java.mk:643: recipe for target 'out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex' failed
make: *** [out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:10:35 (hh:mm:ss)) ####
The server-jack when starting it with the following command "./jack-admin start-server" would give me a message that the variable JACK_JAR was not declared that solves it with this code.
Code:
JACK_VM_COMMAND = "java -Dfile.encoding = UTF-8 -Xmx8g -XX: + TieredCompilation -jar prebuilts / sdk / tools / jack-launcher.jar" JACK_JAR = "prebuilts / sdk / tools / jack.jar" ./prebuilts/ sdk / tools / jack-admin start-server
I think that the problem is due to the server-jack when seeing the status of the server immediately after having started it works correctly but after about 3 minutes it shows this error.
Code:
Getting statistic from background server
ERROR: No Jack server running
I hope you can help me with this problem because I do not know what else to do.
You may be missing some dependencies needed for building, (link) which ones/tutorials have you installed or used
Sent from my Moto E (4) Plus using Tapatalk
As I'm from Azure this is the one I liked the most but they are identical to the others I've seen there, another one that is very complete is Digital Ocean but with all I got the same error I tried Ubuntu 16.04, 14.04 and nothing always the same .
Code:
https://forum.xda-developers.com/chef-central/android/guide-how-to-build-rom-microsoft-azure-t3648669
https://www.digitalocean.com/community/tutorials/how-to-build-android-roms-on-ubuntu-16-04
https://forum.xda-developers.com/chef-central/android/guide-how-to-setup-ubuntu-16-04-lts-t3363669
https://forum.xda-developers.com/showthread.php?t=2455005