plugins { id 'com.android.application' } android { namespace 'com.example.rfidsocket' compileSdk 33 defaultConfig { applicationId "com.example.rfidsocket" minSdk 24 targetSdk 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { // 设置支持的SO库架构 abiFilters 'arm64-v8a' , 'armeabi' , 'armeabi-v7a' } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } buildFeatures { viewBinding true dataBinding true } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } } dependencies { implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.8.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation files('libs\\App_Demo_API.jar') implementation files('libs\\DeviceAPIver20150204.jar') implementation files('libs\\logutil-1.5.1.1.jar') implementation files('libs\\ModuleAPI_J.jar') implementation files('libs\\reader(1).jar') implementation files('libs\\UHF67_v3.6.jar') testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' //基础的 OkSocket 功能集成包.您的Socket开发无论是客户端还是Java,都需要此包 (必须集成) api 'com.tonystark.android:socket:4.1.0' //如果您需要使用 OkSocketServer 功能在客户端或者Java程序,您还需要依赖下面的Server插件包和上面的一起依赖. api 'com.tonystark.android:socket-server:4.1.0' }