閱讀230 返回首頁    go 小米 go 小米6


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

最後更新:2017-04-02 22:16:31

  上一篇:go Ubuntu中 安裝配置JDK
  下一篇:go asp.net中ListBox在jQuery中遇到的問題——直接傳值到不了後台