VanirAOSP compile fails at some api stuff - Android Q&A, Help & Troubleshooting

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?

Related

Android devel

i have error whene compile from source code, please help me ?
target Symbolic: libRScpp (/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/product/i9100/symbols/system/lib/libRScpp.so)
target Java: Bluetooth (/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/APPS/Bluetooth_intermediates/classes)
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:43: error 5: Added public field android.Manifest.permission.CANCEL_NOTIFICATIONS
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:114: error 5: Added public field android.Manifest.permission.SEND_MOCK_SMS
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:21431: error 5: Added public field android.provider.Telephony.Carriers.PREFERRED
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
^^^^^^^^^^^^^^^^^^
NO. NO. STOP BEING LAZY. SERIOUSLY.
DO NOT DO THIS in CM. THIS IS A LIE. IF YOU DO THIS I WILL HATE YOU.
USE OPTION #1.
-Koush
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
make: *** [/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/checkapi-current-timestamp] Error 38
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
real 208m49.614s
user 324m24.650s
sys 16m22.670s
Build failed.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
erolmutlu said:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
Click to expand...
Click to collapse
Did you try this?
Dakura said:
Did you try this?
Click to expand...
Click to collapse
yes i can find first 2 error but third one icant find ?
android.provider.Telephony.Carriers.PREFERRED
erolmutlu said:
yes i can find first 2 error but third one icant find ?
android.provider.Telephony.Carriers.PREFERRED
Click to expand...
Click to collapse
where can i find this line ?
erolmutlu said:
where can i find this line ?
Click to expand...
Click to collapse
please anybody dont know where is the
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:21429: error 5: Added public field android.provider.Telephony.Carriers.PREFERRED
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
^^^^^^^^^^^^^^^^^^
NO. NO. STOP BEING LAZY. SERIOUSLY.
DO NOT DO THIS in CM. THIS IS A LIE. IF YOU DO THIS I WILL HATE YOU.
USE OPTION #1.
-Koush
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************

[Q] I am getting below error,Please help me to solve。

I am getting below error
Frameworks/opt/net/ims/src/java/com/android/ims/internal/ImsCallSession.java:933: error: ImsCallSession.IImsCallSessionListenerProxy is not abstract, and does not cover the callSessionSuppServiceReceived abstract method in IImsCallSessionListener (IImsCallSession, ImsSuppServiceNotification)
Private class IImsCallSessionListenerProxy extends IImsCallSessionListener.Stub {
^
Note: frameworks/opt/net/ims/src/java/com/android/ims/ImsUt.java without the use of check or unsafe operation.
Note: for more information, please use -Xlint:unchecked to compile.
The 1 error
make: *** [/home/zxc/cm/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes-full-debug.jar] error 41
My compilation is giving error in that Only It's Back to track.:crying:
Ever got solution for this? I get same error plus few nmore after merging 5.1.1_r8 into my aosp sources

CM 12 Build Error

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?

Help! Error building AOSP 6.0, API errors

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

Build help?

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
host C: 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....
Import includes file: /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

Categories

Resources