plugins { id 'com.android.application' id 'org.jetbrains.kotlin.multiplatform' } android { compileSdkVersion 29 defaultConfig { applicationId "net.mamoe.mirai.demo" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/main.kotlin_module' exclude 'META-INF/ktor-http.kotlin_module' exclude 'META-INF/kotlinx-io.kotlin_module' exclude 'META-INF/atomicfu.kotlin_module' exclude 'META-INF/ktor-utils.kotlin_module' exclude 'META-INF/kotlinx-coroutines-io.kotlin_module' exclude 'META-INF/kotlinx-coroutines-core.kotlin_module' exclude 'META-INF/ktor-http-cio.kotlin_module' exclude 'META-INF/ktor-http-cio.kotlin_module' exclude 'META-INF/ktor-client-core.kotlin_module' } } kotlin { targets.fromPreset(presets.android, 'android') } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib" implementation project(':mirai-core') implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlin_version implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutines_version implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-android', version: "1.3.2" //implementation 'com.android.support:appcompat-v7:29.1.1'// https://mvnrepository.com/artifact/androidx.appcompat/appcompat implementation group: 'androidx.appcompat', name: 'appcompat', version: '1.1.0' testImplementation "org.jetbrains.kotlin:kotlin-test" testImplementation 'junit:junit:4.12' androidTestImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' def anko_version = "0.10.8" implementation "org.jetbrains.anko:anko-commons:$anko_version" }