Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress warning "It will be removed in version 9.0 of the Android Gradle" for feature pluginandroid.defaults.buildfeatures.aidl

According to Android document, the default value of android.defaults.buildfeatures.aidl is set to false.

But my project need it. So I update the project's gradle properties file:

android.defaults.buildfeatures.aidl=true

but AGP gives me warning:

AGPBI: {"kind":"warning","text":"The option setting 'android.defaults.buildfeatures.aidl=true' is deprecated.\nThe current default is 'false'.\nIt will be removed in version 9.0 of the Android Gradle plugin.","sources":[{}]}

How to suppress it?

like image 633
progquester Avatar asked Sep 10 '25 03:09

progquester


1 Answers

Have you tried with this by adding below code in app level build.gradle file?

android {
   buildFeatures {
        aidl true
    }
}
like image 135
jayesh gurudayalani Avatar answered Sep 13 '25 20:09

jayesh gurudayalani