diff --git a/examples/api/android/app/build.gradle b/examples/api/android/app/build.gradle index a29a2a8cf31..d9f3ab2162d 100644 --- a/examples/api/android/app/build.gradle +++ b/examples/api/android/app/build.gradle @@ -52,6 +52,7 @@ android { targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName + multiDexEnabled true } buildTypes { @@ -68,5 +69,9 @@ flutter { } dependencies { + def multidex_version = "2.0.1" + implementation "androidx.multidex:multidex:$multidex_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' + implementation 'com.google.android.material:material:1.5.0' } diff --git a/examples/api/android/app/src/main/AndroidManifest.xml b/examples/api/android/app/src/main/AndroidManifest.xml index dfdf1143f1c..bf61ca8f881 100644 --- a/examples/api/android/app/src/main/AndroidManifest.xml +++ b/examples/api/android/app/src/main/AndroidManifest.xml @@ -6,9 +6,11 @@ found in the LICENSE file. --> package="dev.flutter.flutter_api_samples"> + + + + + + + + + \ No newline at end of file diff --git a/examples/api/android/app/src/main/res/values/styles.xml b/examples/api/android/app/src/main/res/values/styles.xml new file mode 100644 index 00000000000..52a474457e8 --- /dev/null +++ b/examples/api/android/app/src/main/res/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + + + \ No newline at end of file diff --git a/examples/api/android/build.gradle b/examples/api/android/build.gradle index 8c8f28ccecd..be54596383a 100644 --- a/examples/api/android/build.gradle +++ b/examples/api/android/build.gradle @@ -3,14 +3,14 @@ // found in the LICENSE file. buildscript { - ext.kotlin_version = '1.4.32' + ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:4.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } }