当前位置: 代码迷 >> 综合 >> [RK3288][Android5.1]调试笔记 --- 编译报错out/target/common/obj/PACKAGING/public_api.txt:116: error 5
  详细解决方案

[RK3288][Android5.1]调试笔记 --- 编译报错out/target/common/obj/PACKAGING/public_api.txt:116: error 5

热度:75   发布时间:2023-10-09 13:27:06.0

Platform: RK3288
OS: Android 5.1.1
Kernel: v3.10.0

问题:

firefly-3288 编译Android报错,Ubuntu版本为16.04;

问题日志:

Checking API: checkpublicapi-last
Checking API: checkpublicapi-current
Checking API: checksystemapi-last
Checking API: checksystemapi-current
Copying: out/target/common/obj/APPS/Bluetooth_intermediates/classes.dex
target Symbolic: libgui (out/target/product/rk3288_box/symbols/system/lib/libgui.so)
target Symbolic: libskia (out/target/product/rk3288_box/symbols/system/lib/libskia.so)
Compiling SDK Stubs: out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar
Copying: out/target/common/obj/APPS/WAPPushManager_intermediates/classes.dex
Compiling SDK Stubs: out/target/common/obj/JAVA_LIBRARIES/android_system_stubs_current_intermediates/classes.jar
target Strip: keystore (out/target/product/rk3288_box/obj/EXECUTABLES/keystore_intermediates/keystore)
Install: out/target/product/rk3288_box/system/lib/libaudiopolicymanager.so
Install: out/target/product/rk3288_box/system/bin/vold
target Static Jar: services.core (out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/javalib.jar)
target Java: services.appwidget (out/target/common/obj/JAVA_LIBRARIES/services.appwidget_intermediates/classes)
target Java: services.backup (out/target/common/obj/JAVA_LIBRARIES/services.backup_intermediates/classes)
target Java: services.devicepolicy (out/target/common/obj/JAVA_LIBRARIES/services.devicepolicy_intermediates/classes)
target Java: services.print (out/target/common/obj/JAVA_LIBRARIES/services.print_intermediates/classes)
out/target/common/obj/PACKAGING/public_api.txt:20: error 5: Added public field android.Manifest.permission.BACKUP
out/target/common/obj/PACKAGING/public_api.txt:82: error 5: Added public field android.Manifest.permission.INVOKE_CARRIER_SETUP
out/target/common/obj/PACKAGING/public_api.txt:106: error 5: Added public field android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE
out/target/common/obj/PACKAGING/public_api.txt:116: error 5: Added public field android.Manifest.permission.RECEIVE_EMERGENCY_BROADCAST******************************
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 theerrors above.2) You can update current.txt by executing the following command:make update-apiTo submit the revised current.txt to the main Android repository,you will need approval.
******************************build/core/tasks/apicheck.mk:62: recipe for target 'out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp' failed
make: *** [out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp] Error 38

方法:

make update-api

 

  相关解决方案