实现主题切换, 需要在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}*/ 修饰.

更多相关文章

  1. [Phonegap+Sencha Touch] 移动开发57 Cordova 5生成的安卓apk,ver
  2. Android自学总结――第一篇:关于导入项目时出的错误
  3. androidSDK也要配置环境变量
  4. Android Studio 编译时dx.bat报outofmemory错误
  5. [Android]下载CM11.0 Android 源码过程与错误解决
  6. Android Unparsed aapt error(s)! Check the console for output
  7. Mac OS X系统下android环境变量配置和真机调试
  8. android错误:Installation error: INSTALL_FAILED_VERSION_DOWNGR
  9. Android错误:java.lang.RuntimeException: Unable to start activ

随机推荐

  1. 自己封装的Android(安卓)sqlite-helper.j
  2. Android开发学习:ImageView的scaletype属
  3. Android(安卓)Animation之frame animatio
  4. Android(安卓)网络请求简单使用方式
  5. android控件背景揭密--NinePatch
  6. Android(安卓)Layout属性
  7. lua学习笔记 3 android调用Lua。Lua脚本
  8. I/O流的梳理和小结
  9. 【不负初心】Android初中高级开发工程师
  10. 红透半边天的Android