天天看點

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編譯順利通過。

繼續閱讀