You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to integrate "com.liveperson.android:lp_messaging_sdk:3.9.0" library. But I'm getting this error while compiling an application: Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: okhttp3.RequestBody$1
I suppose it's related to okhttp3 library, soI tried to exclude okhttp3 from LivePersonChat library, because I already have okhttp3 in my application. I did like this, but it didn't work: implementation("com.liveperson.android:lp_messaging_sdk:3.9.0") { exclude group: 'com.squareup.okhttp3.RequestBody', module: 'okhttp' }
Also tried excluding like these, still no success:
exclude group: "com.squareup.okhttp3" // didn't work
exclude group: 'com.squareup.okhttp', module: 'okhttp' // didn't work
I'm using the following versions of okhttp3 library:
implementation "com.squareup.okhttp3:okhttp:3.8.1"
implementation "com.squareup.okhttp3:logging-interceptor:3.8.1"
implementation "com.squareup.okhttp3:okhttp-urlconnection:3.4.1"
Tried to change the okhttp3 version till 4.0.0, but no result.
Please, assist me
The text was updated successfully, but these errors were encountered:
Hello community!
I'm trying to integrate "com.liveperson.android:lp_messaging_sdk:3.9.0" library. But I'm getting this error while compiling an application:
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: okhttp3.RequestBody$1
I suppose it's related to okhttp3 library, soI tried to exclude okhttp3 from LivePersonChat library, because I already have okhttp3 in my application. I did like this, but it didn't work:
implementation("com.liveperson.android:lp_messaging_sdk:3.9.0") { exclude group: 'com.squareup.okhttp3.RequestBody', module: 'okhttp' }
Also tried excluding like these, still no success:
exclude group: "com.squareup.okhttp3" // didn't work
exclude group: 'com.squareup.okhttp', module: 'okhttp' // didn't work
I'm using the following versions of okhttp3 library:
implementation "com.squareup.okhttp3:okhttp:3.8.1"
implementation "com.squareup.okhttp3:logging-interceptor:3.8.1"
implementation "com.squareup.okhttp3:okhttp-urlconnection:3.4.1"
Tried to change the okhttp3 version till 4.0.0, but no result.
Please, assist me
The text was updated successfully, but these errors were encountered: