实现主题切换, 需要在frameworks\base\core\java\android\app下面新增一个自定义的类. 结果在编译过程中提示错误:
out/target/common/obj/PACKAGING/public_api.txt:3863: error 3: Added class ThemeResource to package android.app
Copying: out/target/common/obj/APPS/DeskClock_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/DownloadProvider_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/DownloadProviderUi_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/DrmProvider_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/com.android.emailcommon_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/EngineerModeSim_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/EtonApplicationManager_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/EtonPrivacy_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/EyoCalendar_intermediates/classes-jarjar.jar
******************************
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.
******************************
Copying: out/target/common/obj/APPS/FMRadio_intermediates/classes-jarjar.jar
make[3]: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] 错误 38
make[3]: *** 正在等待未完成的任务....
DroidDoc took 229 sec. to write docs to out/target/common/docs/doc-comment-check
后来问同事发现 , 必须对新增类中的函数或成员变量如果是public的话必须添加 /**{@hide}*/ 修饰.