[Android] AnkitGourav:
Anyone please help I'm getting this error while compiling havoc-os pie for my device

[ 99% 87472/87979] Checking API: checkpublicapi-current
FAILED: /home/tmp/havoc/pie/out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp
/bin/bash -c "(( /home/tmp/havoc/pie/out/host/linux-x86/bin/apicheck -JXmx1024m -J\"classpath /home/tmp/havoc/pie/out/host/linux-x86/framework/doclava.jar:/home/tmp/havoc/pie/out/host/linux-x86/framework/jsilver.jar:prebuilts/jdk/jdk8/linux-x86/lib/tools.jar:)\" -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 -error 25 -error 26 -error 27 frameworks/base/api/current.txt /home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt frameworks/base/api/removed.txt /home/tmp/havoc/pie/out/target/common/obj/PACKAGING/removed.txt || ( cat build/make/core/apicheck_msg_current.txt ; exit 38 ) ) ) && (mkdir -p /home/tmp/havoc/pie/out/target/common/obj/PACKAGING/ ) && (touch /home/tmp/havoc/pie/out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp )"
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:22188: error 4: Added public method android.media.AudioManager.setStreamMaxVolume(int,int)
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36590: error 5: Added public field android.provider.Settings.SCREEN_STABILIZATION_SETTINGS
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36774: error 5: Added public field android.provider.Settings.System.ANIMATION_CONTROLS_DURATION
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36781: error 5: Added public field android.provider.Settings.System.CHOOSER_ACTIVITY_BLACKLIST
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36812: error 5: Added public field android.provider.Settings.System.POCKET_JUDGE
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36829: error 5: Added public field android.provider.Settings.System.STABILIZATION_LOWPASS_ALPHA
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36830: error 5: Added public field android.provider.Settings.System.STABILIZATION_POSITION_FRICTION
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36831: error 5: Added public field android.provider.Settings.System.STABILIZATION_VELOCITY_AMPLITUDE
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:36832: error 5: Added public field android.provider.Settings.System.STABILIZATION_VELOCITY_FRICTION
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:48997: error 5: Added public field android.view.WindowManager.SCREEN_RECORD_HIGH_QUALITY
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:48998: error 5: Added public field android.view.WindowManager.SCREEN_RECORD_MID_QUALITY
/home/tmp/havoc/pie/out/target/common/obj/PACKAGING/public_api.txt:50106: error 4: Added public method android.view.inputmethod.EditorInfo.formalTextInput(boolean)

******************************
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

To submit the revised current.txt to the main Android repository,
you will need approval.
******************************

[ 99% 87475/87979] Compiling SDK Stubs: /home/tmp/havoc/pie/...n/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar
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.
[ 99% 87476/87979] Compiling SDK Stubs: /home/tmp/havoc/pie/...AVA_LIBRARIES/android_system_stubs_current_intermediates/classes.jar
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.
[ 99% 87477/87979] Compiling SDK Stubs: /home/tmp/havoc/pie/.../JAVA_LIBRARIES/android_test_stubs_current_intermediates/classes.jar
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.
ninja: build stopped: subcommand failed.
12:59:52 ninja failed with: exit status 1

#### failed to build some targets (02:54:22 (hh:mm:ss)) ####

real	174m22.190s
user	531m19.989s
sys	26m5.642s