@@ -16,10 +16,11 @@ if (keystorePropertiesFile.exists()) {
1616
1717android {
1818 namespace = " com.ayuban.arlearning"
19- compileSdk = flutter.compileSdkVersion
19+ compileSdk = 36
2020 ndkVersion = flutter.ndkVersion
2121
2222 compileOptions {
23+ isCoreLibraryDesugaringEnabled = true
2324 sourceCompatibility = JavaVersion .VERSION_11
2425 targetCompatibility = JavaVersion .VERSION_11
2526 }
@@ -29,14 +30,12 @@ android {
2930 }
3031
3132 defaultConfig {
32- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3333 applicationId = " com.ayuban.arlearning"
34- // You can update the following values to match your application needs.
35- // For more information, see: https://flutter.dev/to/review-gradle-config.
3634 minSdk = flutter.minSdkVersion
3735 targetSdk = flutter.targetSdkVersion
3836 versionCode = flutter.versionCode
3937 versionName = flutter.versionName
38+ multiDexEnabled = true
4039 }
4140
4241 signingConfigs {
@@ -50,8 +49,6 @@ android {
5049
5150 buildTypes {
5251 release {
53- // TODO: Add your own signing config for the release build.
54- // Signing with the debug keys for now, so `flutter run --release` works.
5552 signingConfig = signingConfigs.getByName(" release" )
5653 }
5754 }
@@ -60,3 +57,13 @@ android {
6057flutter {
6158 source = " ../.."
6259}
60+
61+
62+ dependencies {
63+ coreLibraryDesugaring(" com.android.tools:desugar_jdk_libs:2.1.4" )
64+
65+ implementation(" androidx.window:window:1.0.0" )
66+ implementation(" androidx.window:window-java:1.0.0" )
67+
68+ implementation(" androidx.multidex:multidex:2.0.1" )
69+ }
0 commit comments