Reply To: NXP lib not working on Android 7+ due to missing Apache HTTP client

Forum MIFARE SDK NXP lib not working on Android 7+ due to missing Apache HTTP client Reply To: NXP lib not working on Android 7+ due to missing Apache HTTP client

Re: NXP lib not working on Android 7+ due to missing Apache HTTP client

10. November 2020 at 9:27
I am also facing the same issue,
My gradle file settings are,
implementation fileTree(dir: "libs", include: ["*.aar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'com.google.firebase:firebase-core:17.2.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

implementation files('libs/nxpnfcandroidlib-1.7.aar')

But I get the following error,

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/params/BasicHttpParams;
at com.nxp.nfclib.ι$iF$1.run(:752)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.params.BasicHttpParams" on path: DexPathList[[zip file "/data/app/com.example.desfiresdklogic-LiEY84vPfw9mjz1PO1XFaQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.desfiresdklogic-LiEY84vPfw9mjz1PO1XFaQ==/lib/arm64, /system/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.nxp.nfclib.ι$iF$1.run(:752)

Could you please let me know regarding the same.
+ 0  |  - 0