android : 修改frameworks/base/ 代码需要注意的地方
16lz
2021-01-24
需要修改frameworks/base/下的代码,请注意:如果修改了Android原有API的,需要updateframeworks/base/api/current.txt。否则编译被中断并出现下面提示。
可以通过运行makeupdate-api后,自动更新此文件,检查确认正确后,跟代码一起提交即可。
Note:本周碰到这样case,是因为修改了:Mframeworks/base/core/java/android/provider/Contacts.java
Install:out/host/linux-x86/bin/apicheck
CheckingAPI:checkapi-last
CheckingAPI:checkapi-current
*******************************************************************************
YouhavetriedtochangetheAPIfromwhathasbeenpreviouslyapproved.
Tomaketheseerrorsgoaway,youhavetwochoices:
1)Youcanadd"@hide"javadoccommentstothemethods,etc.listedinthe
errorsabove.
2)Youcanupdatecurrent.xmlbyexecutingthefollowingcommands:
p4editframeworks/base/api/current.xml
makeupdate-api
Tocheckintherevisedcurrent.xml,youwillneedOWNERSapproval.
******************************************************************************************
可以通过运行makeupdate-api后,自动更新此文件,检查确认正确后,跟代码一起提交即可。
Note:本周碰到这样case,是因为修改了:Mframeworks/base/core/java/android/provider/Contacts.java
Install:out/host/linux-x86/bin/apicheck
CheckingAPI:checkapi-last
CheckingAPI:checkapi-current
*******************************************************************************
YouhavetriedtochangetheAPIfromwhathasbeenpreviouslyapproved.
Tomaketheseerrorsgoaway,youhavetwochoices:
1)Youcanadd"@hide"javadoccommentstothemethods,etc.listedinthe
errorsabove.
2)Youcanupdatecurrent.xmlbyexecutingthefollowingcommands:
p4editframeworks/base/api/current.xml
makeupdate-api
Tocheckintherevisedcurrent.xml,youwillneedOWNERSapproval.
******************************************************************************************
更多相关文章
- Android(安卓)获取mp4文件中任意时间点的帧图片(MediaMetadataRe
- Android(安卓)推送:Android(安卓)Studio 集成Jpush的使用教程
- android:sharedUserId="android.uid.system" 的使用
- FFMPEG移植到Android(ubuntu环境下)
- Android源代码分析(二) MediaScanner源码分析(上)
- Android(安卓)WebView与JavaScript交互详解
- Android基础教程之----简单拨打电话程序!!!
- 使用新的 Android(安卓)Studio 加速你的开发
- Android(安卓)Studio 中自带Android(安卓)Monitor监控内存溢出浅