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 need some help here, I've been googling for the past 2 hours to no avail
I've successfully build AOSP before, tonight I did a repo sync, but when I rebuild, I get these errors:
Code:
Docs droiddoc: out/target/common/docs/api-stubs
DroidDoc took 15 sec. to write docs to out/target/common/docs/api-stubs
Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: out/host/linux-x86/bin/apicheck
Checking API: checkpublicapi-last
out/target/common/obj/PACKAGING/public_api.txt:1966: error 17: Field android.R.style.TextAppearance_Material_Widget_Button_Inverse has changed value from 16974548 to 16974565
out/target/common/obj/PACKAGING/public_api.txt:2011: error 17: Field android.R.style.ThemeOverlay_Material_Dialog has changed value from 16974550 to 16974564
out/target/common/obj/PACKAGING/public_api.txt:2012: error 17: Field android.R.style.ThemeOverlay_Material_Dialog_Alert has changed value from 16974551 to 16974566
out/target/common/obj/PACKAGING/public_api.txt:2120: error 17: Field android.R.style.Theme_Material_Light_LightStatusBar has changed value from 16974549 to 16974563
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
make: *** [out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp] Error 38
Is there anything I can do to fix this? Tried make update-api and it gives the same errors.. Tried doing repo sync again as well.
Were you able to fix this? I am facing the same issue.
try:
make update-api
Hey.
I'm having a problem building CM 13 for my phone... What can i do?
Code:
mkbootfs (/home/valascus/CM13/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/home/valascus/CM13/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/valascus/CM13/out/target/product/p8000/obj/ETC/sepolicy_intermediates/policy.conf
device/elephone/p8000/sepolicy/resmon.te:23:ERROR 'syntax error' at token 'unconfined_domain' on line 16869:
#line 23
unconfined_domain(resmon)
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:85: recipe for target '/home/valascus/CM13/out/target/product/p8000/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/valascus/CM13/out/target/product/p8000/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
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.