我用的 AS 版本是
Android Studio Giraffe | 2022.3.1
Build #AI-223.8836.35.2231.10406996, built on June 29, 2023
右键新建 aidl 文件,
提示 (AIDL File)Requires setting the buildFeatures.aidl to true in the build file
修改 app 的 build.gradle
,在 android{}
闭包里添加
buildFeatures{
aidl true
}