group 'com.tencent.live_flutter_plugin' version '1.0' buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:3.5.3' } } rootProject.allprojects { repositories { google() mavenCentral() } } apply plugin: 'com.android.library' def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { print("not find flutterRoot") } android { compileSdkVersion 30 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { minSdkVersion 16 } dependencies { api 'com.tencent.liteav:custom-video-processor:latest.release' api 'com.tencent.liteav:LiteAVSDK_Professional:11.0.0.13129' implementation 'com.google.code.gson:gson:2.8.6' compileOnly 'androidx.annotation:annotation:1.0.0' compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm/flutter.jar") compileOnly 'androidx.core:core:1.0.0' } }