跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Android 编译问题,求个大佬进来看看。
未分類
19 7 月 2020

Android 编译问题,求个大佬进来看看。

Android 编译问题,求个大佬进来看看。

資深大佬 : kpppp 10

最近编译源码 Android9.0
在 mk 里面遇到一个奇怪的注释:

IoStats are parcelable types (vs. interface types), but the build system uses an initial I as a magic marker to mean “interface”, and due to this ends up refusing to compile these files as part of the build process.
A clean solution to this is actively being worked on by the build team, but is not yet available, so for now we just filter the files out by hand.
*

car_lib_sources := $(filter-out src/android/car/storagemonitoring/IoStats.aidl,$(car_lib_sources)) car_lib_sources := $(filter-out src/android/car/storagemonitoring/IoStatsEntry.aidl,$(car_lib_sources))

public final class IoStatsEntry implements Parcelable { ...省略代码 } public class IoStats implements Parcelable { ...省略代码 } 

为什么在编译的时候,把这两个I开头的 aidl 文件过滤掉?这个是系统的规则嘛?

大佬有話說 (3)

  • 資深大佬 : Madcrow

    “I”开头的 AIDL 代表接口吧,这个 IoStats 又不是个接口,就过滤掉了

  • 主 資深大佬 : kpppp

    @Madcrow 应该是,我后面写了 demo 验证,就是不知道是哪个 mk 文件 或者 脚本来做的这个判断。

  • 資深大佬 : Madcrow

    AIDL 解析工具在 system/tools/aidl 目录下,没看到如何解析首字母的地方,你可以找找

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具