修改Module下的build.gradle文件
//plugins {
// id 'com.android.application'
//}
apply plugin : 'com.android.library'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
// applicationId "com.liangxin.webview"
minSdkVersion 26
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
//生成jar包
task makeJar(type: Copy) {
//删除存在的
// delete 'build/libs/myjar.jar'
//设置拷贝的文件 /Users/shimingcao/Desktop/Android/WebV