group 'com.anji.aj_flutter_appsp_push' version '1.0' buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' } } rootProject.allprojects { repositories { google() jcenter() } } apply plugin: 'com.android.library' android { compileSdkVersion 30 defaultConfig { minSdkVersion 16 } packagingOptions { doNotStrip '*/mips/*.so' doNotStrip '*/mips64/*.so' merge 'classes.jar' merge 'res/values/values.xml' merge 'AndroidManifest.xml' merge 'R.txt' } sourceSets { main { jniLibs.srcDir 'libs' jni.srcDirs = [] //disable automatic ndk-build } } compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } } dependencies { provided fileTree(dir: 'libs', include: ['*.jar']) provided fileTree(dir: 'libs', include: ['*.aar']) implementation 'androidx.appcompat:appcompat:1.0.2' // push kit implementation 'com.huawei.hms:push:4.0.3.301' implementation files('libs\\MiPush_SDK_Client_3_8_5.jar') implementation 'cn.jiguang.sdk:jpush:3.9.0' // 此处以JPush 3.9.0 版本为例。 implementation 'cn.jiguang.sdk:jcore:2.6.0' // 此处以JCore 2.6.0 版本为例。 implementation 'com.google.code.gson:gson:2.7' implementation "androidx.annotation:annotation:1.1.0" }