//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" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { compileOnly fileTree(dir: 'libs', include: ['*.jar']) // compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar']) // 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' // implementation fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar']) // compileOnly 'com.alibaba:fastjson:1.1.46.android' // compileOnly 'com.alibaba:fastjson:1.2.83' //uni离线SDK升级后升级 implementation files('libs\\printersdkv5.7.2.jar') //必须添加的依赖 compileOnly 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' compileOnly 'androidx.core:core:1.1.0' compileOnly 'androidx.fragment:fragment:1.1.0' compileOnly 'androidx.appcompat:appcompat:1.1.0' compileOnly 'androidx.recyclerview:recyclerview:1.1.0' compileOnly 'com.alibaba:fastjson:1.2.83' compileOnly fileTree(include: ['uniapp-v8-release.aar'], dir: '../app/libs') }