Skip to content

Commit fe50712

Browse files
committed
fix: build issue for android
1 parent 69cc6fe commit fe50712

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
compileSdkVersion safeExtGet('compileSdkVersion', 31)
3131

3232
defaultConfig {
33-
minSdkVersion safeExtGet('minSdkVersion', 16)
33+
minSdkVersion safeExtGet('minSdkVersion', 21)
3434

3535
consumerProguardFiles 'consumer-rules.pro'
3636
}

android/consumer-rules.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
-keep class org.jetbrains.** { *; }
44

55
-keep class io.agora.**{*;}
6+
# Suppress ERROR: R8: Missing class com.google.devtools.build.android.desugar.runtime.ThrowableExtension
7+
-dontwarn com.google.devtools.build.android.desugar.runtime.ThrowableExtension

example/android/app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29+
namespace "io.agora.agora_rtc_ng_example"
30+
2931
compileSdkVersion 34
3032

3133
compileOptions {
@@ -44,7 +46,7 @@ android {
4446
defaultConfig {
4547
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4648
applicationId "io.agora.agora_rtc_ng_example"
47-
minSdkVersion 18
49+
minSdkVersion 21
4850
targetSdkVersion flutter.targetSdkVersion
4951
versionCode flutterVersionCode.toInteger()
5052
versionName flutterVersionName

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
buildscript {
22
// Min kotlin version for Flutter SDK 3.24
3-
ext.kotlin_version = '1.7.0'
3+
ext.kotlin_version = '1.9.10'
44
repositories {
55
google()
66
mavenCentral()
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.1.2'
10+
classpath 'com.android.tools.build:gradle:8.7.0'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
}
1313
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
77

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
ffi: '>=1.1.2'
1818
async: ^2.8.2
1919
meta: ^1.7.0
20-
iris_method_channel: 2.0.0
20+
iris_method_channel: '>=2.2.0'
2121
js: '>=0.6.3'
2222
dev_dependencies:
2323
flutter_test:

0 commit comments

Comments
 (0)