From 49cebf230c7bd16558c2e3939b49b928197ac0b8 Mon Sep 17 00:00:00 2001 From: hexm <627428179@qq.com> Date: Thu, 24 Mar 2022 13:08:38 +0800 Subject: [PATCH] android demo target sdk-31 --- example/android/app/build.gradle | 8 +-- .../android/app/src/main/AndroidManifest.xml | 3 +- example/android/build.gradle | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/pubspec.lock | 63 ++++++++++--------- 5 files changed, 42 insertions(+), 38 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 3932aa9..86d5ab4 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,21 +26,17 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 29 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' } - lintOptions { - disable 'InvalidPackage' - } - defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.example" minSdkVersion 16 - targetSdkVersion 29 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 55ca830..2ffd376 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -6,11 +6,12 @@ additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> =2.12.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" flutter: ">=1.24.0"