group 'com.hy.print.hy_printer' version '1.0' buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' } } rootProject.allprojects { repositories { google() mavenCentral() } } apply plugin: 'com.android.library' android { compileSdkVersion 30 buildToolsVersion "30.0.0" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { minSdkVersion 16 } sourceSets { main { jniLibs.srcDirs = ['libs'] } } } dependencies{ implementation fileTree(dir: "libs", include: ["*.jar"]) implementation files('libs/CPCL_SDK_V1.12.jar') implementation 'androidx.annotation:annotation:1.3.0' }