Closed aishahismail92 closed 3 years ago
Hi @aishahismail92,
This is because there is a transitive dependency, and it has already been imported by one of the imports already made, in this case lib jetified-aspectjrt-1.9.6
.
To solve this, just exclude this dependency.
Ex.
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation('com.github.mvallim:emv-qrcode:0.1.1') {
exclude group: 'org.aspectj'
}
}
Thanks,
@mvallim Thank you so much. It's working.
I've added this using Gradle inside the Android Studio. But when I run the project, these errors showing.
Here is how I added into using Gradle inside build.gradle (APP)