FAILED: out_sys/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/check_current_api.timestamp
( true && diff -u -F '{ *$' frameworks/base/core/api/current.txt out_sys/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable_api.txt && diff -u -F '{ *$' frameworks/base/core/api/removed.txt out_sys/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable_removed.txt && touch out_sys/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/check_current_api.timestamp ) || ( echo -e "\n******************************\nYou have tried to change the API from what has been previously approved.\n\nTo make these errors go away, you have two choices:\n 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc)\n to the new methods, etc. shown in the above diff.\n\n 2. You can update current.txt and/or removed.txt by executing the following command:\n m api-stubs-docs-non-updatable-update-current-api\n\n To submit the revised current.txt to the main Android repository,\n you will need approval.\n******************************\n" ; exit 38 ) # hash of input list: b7786fb9ef4d10e48b9003a1b35e17aea659a3b84286d756f1b60f4a0a9e0285
--- frameworks/base/core/api/current.txt 2025-01-13 17:29:23.406892947 +0800
+++ out_sys/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable_api.txt 2025-01-14 14:10:54.864616738 +0800
@@ -37860,6 +37860,7 @@ public static final class Settings.Secur
field public static final String SELECTED_INPUT_METHOD_SUBTYPE = "selected_input_method_subtype";
field public static final String SETTINGS_CLASSNAME = "settings_classname";
field public static final String SKIP_FIRST_USE_HINTS = "skip_first_use_hints";
+ field public static final String SUNMI_SEC_PAY_MODE = "sunmi_sec_pay_mode";
field public static final String TOUCH_EXPLORATION_ENABLED = "touch_exploration_enabled";
field @Deprecated public static final String TTS_DEFAULT_COUNTRY = "tts_default_country";
field @Deprecated public static final String TTS_DEFAULT_LANG = "tts_default_lang";
******************************
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 (and remove @SystemApi/@TestApi/etc)
to the new methods, etc. shown in the above diff.
2. You can update current.txt and/or removed.txt by executing the following command:
m api-stubs-docs-non-updatable-update-current-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
解决方法:
使用@hide或者 m api-stubs-docs-non-updatable-update-current-api