//plugins { // id 'com.android.library' //} apply plugin: 'com.android.library' android { compileSdkVersion 33 // buildToolsVersion "33.0.1" defaultConfig { minSdkVersion 21 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" ndk { // Specifies the ABI configurations of your native // libraries Gradle should build and package with your APK. // abiFilters 'armeabi-v7a', 'arm64-v8a' // abiFilters 'armeabi-v7a', 'armeabi' abiFilters 'armeabi-v7a' } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } //导入aar需要的配置 //repositories { // flatDir { // dirs 'libs' // } //} dependencies { // compileOnly fileTree(dir: 'libs', include: ['*.jar']) // implementation 'androidx.appcompat:appcompat:1.2.0' // implementation 'com.google.android.material:material:1.2.1' // testImplementation 'junit:junit:4.+' // androidTestImplementation 'androidx.test.ext:junit:1.1.2' // androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' // compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar']) implementation fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar']) compileOnly 'com.alibaba:fastjson:1.1.46.android' implementation files('libs\\ph-1.2.2.jar') implementation files('libs\\sdkapi.jar') }