apply plugin: 'com.android.application' android { compileSdkVersion 29 defaultConfig { applicationId "com.ifastore.maintain" minSdkVersion 21 targetSdkVersion 23 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi"//可以适当补填其他 } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } repositories { flatDir { dirs 'libs' } maven { url 'https://repo.eclipse.org/content/repositories/paho-snapshots/' } } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.material:material:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.1' implementation 'androidx.navigation:navigation-fragment:2.1.0' implementation 'androidx.navigation:navigation-ui:2.1.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'de.hdodenhof:circleimageview:2.1.0' implementation 'com.jakewharton:butterknife:10.0.0' annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0' //flatbuffers 1.12.0 // https://mvnrepository.com/artifact/com.google.flatbuffers/flatbuffers-java implementation group: 'com.google.flatbuffers', name: 'flatbuffers-java', version: '1.12.0' //viewmodel and livedata implementation "android.arch.lifecycle:extensions:1.1.1" annotationProcessor "android.arch.lifecycle:compiler:1.1.1" implementation 'com.squareup.retrofit2:retrofit:2.5.0'//导入retrofit implementation 'com.google.code.gson:gson:2.8.5'//Gson 库 //retrofit日志拦截 implementation 'com.squareup.okhttp3:logging-interceptor:3.13.1' implementation 'com.orhanobut:logger:2.1.0' // 打印日志 //下面两个是RxJava 和 RxAndroid implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation 'io.reactivex.rxjava2:rxjava:2.2.7' implementation 'com.squareup.retrofit2:converter-gson:2.5.0'//转换器,请求结果转换成Model implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'//配合Rxjava 使用 //room databases implementation "android.arch.persistence.room:runtime:1.1.1" annotationProcessor "android.arch.persistence.room:compiler:1.1.1" //loading view implementation project(':DialogUtilsLibrary') implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' implementation 'com.github.inksnow:popuputils:1.0.9' //log /* implementation 'com.jakewharton.Timber:timber:4.7.1' implementation 'org.slf4j:slf4j-api:1.7.25' implementation 'com.github.tony19:logback-android:2.0.0'*/ }