-
在 Android Studio 中,新建 AIDL 文件按钮是灰色并出现如下提示信息
AIDL File (Requires setting the buildFeatures.aidl to true in the Gradle build files)
问题原因
- 这个提示信息表示未在 Gradle 中开启 AIDL 支持
处理策略
- 在模块级
build.gradle文件中,添加如下内容,开启 AIDL 支持
groovy
android {
buildFeatures {
aidl true
}
}