Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is settings_aar.gradle in android/flutter for?

I have noticed that some of my apps that I created in flutter has settings_aar.gradle and some only settings.gradle on the appName/android folder , I tried to check online but cant find to know the answer. Thanks

like image 953
David B. Avatar asked May 06 '20 14:05

David B.


People also ask

What is the use of gradle in flutter?

Gradle comes to your rescue whenever you wish to build an Android Project. It makes sure that you can generate an apk from . java and . xml files in the most efficient way possible.


1 Answers

settings_aar.gradle is for AndroidX migration.

For older flutter version without AndroidX a long message should appear in CLI stdout when building the app after upgrade to newer flutter version

https://github.com/flutter/flutter/blob/54dba4cd59f4b330e66960f0d37cf57802f675a8/packages/flutter_tools/gradle/manual_migration_settings.gradle.md

https://github.com/flutter/flutter/blob/33aa45760430c6e6ea3552a263613f576c10c822/packages/flutter_tools/lib/src/android/gradle.dart#L154

like image 163
Terry Avatar answered Sep 18 '22 19:09

Terry