Failed to resolve com.androidAffected Modules and com.loopjAffected Modules in android. I have checked with different links but I am confused.
Below is my App build file
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 is the aar file which is imported into this project and then I build giving below exceptions Failed to resolve com.androidAffected Modules and Failed to resolve com.loopjAffected Modules
Please help me on this.Thanks in advance.