apply plugin: 'com.android.application' android { compileSdkVersion 30 defaultConfig { applicationId "com.example.socketdemo" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // implementation 'androidx.appcompat:appcompat:1.1.0' // implementation 'androidx.constraintlayout:constraintlayout:1.1.3' // testimplementation 'junit:junit:4.12' // //ButterKnife注入 // implementation 'com.jakewharton:butterknife:+' // annotationProcessor 'com.jakewharton:butterknife-compiler:+' // // //万能适配器(RecyclerView):https://github.com/hongyangAndroid/baseAdapter // implementation 'com.zhy:base-rvadapter:+' // implementation 'com.google.code.gson:gson:+' }