Android Framework中添加AIDL文件编译

网友投稿 1004 2022-12-01

Android Framework中添加AIDL文件编译

Android Framework中添加AIDL文件编译

在framework中的 Android.mk文件中添加

...... core/java/android/app/backup/IBackupManager.aidl \core/java/android/app/backup/IRestoreObserver.aidl \core/java/android/app/backup/IRestoreSession.aidl \core/java/android/bluetooth/IBluetooth.aidl \core/java/android/bluetooth/IBluetoothA2dp.aidl \core/java/android/bluetooth/IBluetoothCallback.aidl \core/java/android/bluetooth/IBluetoothHeadset.aidl \ core/java/android/bluetooth/IBluetoothHid.aidl \core/java/android/bluetooth/IBluetoothPbap.aidl \core/java/android/content/IContentService.aidl \core/java/android/content/IIntentReceiver.aidl \core/java/android/content/IIntentSender.aidl \core/java/android/content/ISyncAdapter.aidl \

......

有错误出来了,ok跟着做。

******************************

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.xml by executing the following command:

make update-api

To submit the revised current.xml to the main Android repository,

you will need approval.

******************************

make updata-api --更新系统api

>>>>>>finish

make -j8  --重新编译

ok编译顺利通过。

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Ubuntu android编译make adt步骤
下一篇:自定义menu替代TabHost中的TabWidget
相关文章

 发表评论

暂时没有评论,来抢沙发吧~