问题描述与处理策略
1、问题描述
AIDL File (Requires setting the buildFeatures.aidl to true in the Gradle build files)
-
AIDL(Android Interface Definition Language)文件用于定义不同应用或服务之间的通信接口,此问题是在 Android Studio 中无法创建 AlDL 文件
-
给出提示是需要在 Gradle 构建文件中将
buildFeatures.aidl
设置为true
2、处理策略
- 在模块级
build.gradle
文件添加如下配置
-
buildFeatures {}
块用于为 Android 项目启用或禁用一组特定的构建特性 -
aidl true
用于启用启用 AIDL 支持
android {
...
buildFeatures {
aidl true
}
}