使用程序时,当您输入某个类时,将关闭程序并输出此错误。 这是我的摇篮。
此gradle属于我的图书馆
apply plugin: 'com.android.library'
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
flatDir {
dirs 'libs'
}
}
android {
publishNonDefault true
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
lintOptions {
abortOnError false
}
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
multiDexEnabled true
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.vpnSdkVersionCode
versionName rootProject.ext.vpnSdkVersionName
consumerProguardFiles 'proguard-rules.pro'
buildConfigField "String", "BASE_API_URL", "\"https://qamobileapi.privatewifi.com/\""
externalNativeBuild {
cmake {
cppFlags ""
arguments "-DANDROID_PLATFORM=android-22"
// https://developer.android.com/ndk/guides/cmake.html
}
}
ndk {
// https://developer.android.com/ndk/guides/abis.html#sa
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
buildTypes {
debug {
debuggable true
}
qa {
debuggable true
minifyEnabled false
matchingFallbacks = ['debug', 'release']
}
release {
debuggable true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_API_URL", "\"https://mobileapi.privatewifi.com/\""
}
debugRelease {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
matchingFallbacks = ['release']
}
}
}
dependencies {
implementation rootProject.ext.appcompatVersion
//implementation files('libs/commons-io-1.3.2.jar')
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.okio:okio:2.4.1'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.50'
implementation 'junit:junit:4.11'
implementation 'commons-io:commons-io:1.3.2'
implementation files('libs\\multidex-1.0.3.aar')
implementation files('libs\\okhttp-urlconnection-1.6.0.jar')
implementation files('libs\\rxjava-2.2.12.jar')
implementation files('libs\\rxandroid-2.1.1-sources.jar')
implementation files('libs\\adapter-rxjava-2.4.0.jar')
implementation files('libs\\retrofit2-rxjava2-adapter-1.0.0.jar')
implementation files('libs\\reactive-streams-1.0.3.jar')
}
task copyAAR(type: Copy) {
from('build/outputs/aar')
into('../pwfsdkclientsample/libs')
include(project.name + '-release.aar')
}
上面的代码是指发生偏离的模块之一。
我不知道问题是什么。在代码中,您可以看到我要连接到multiDex的内容。感谢您的帮助。