【发布时间】:2019-11-01 07:28:24
【问题描述】:
无法在 android 中解析 com.androidAffected Modules 和 com.loopjAffected Modules。 我检查了不同的链接,但我很困惑。
下面是我的应用构建文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.XXX.XXXX"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:cardview v7:25.3.1'
implementation 'com.github.bumptech.glide:glide:3.6.1'
implementation 'me.dm7.barcodescanner:zxing:1.8.4'
implementation 'com.loopj.android:androidasync http:1.4.9'
implementation 'com.google.code.gson:gson:2.6.2'
implementation project(':merchantsdk')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
MerchantSDK 是导入到这个项目中的 aar 文件,然后我构建给出以下异常 无法解析 com.androidAffected 模块和 无法解析 com.loopjAffected Modules
请帮助我。在此先感谢。
【问题讨论】:
标签: android build.gradle aar