Error while compiling release build in Android Studio 3.0 RC2
Add to build.gradle located in app module
configurations {
all {
exclude module: 'httpclient'
exclude module: 'commons-logging'
}
}
The same error i fixed by this piece of code...
android {
...
configurations {
all {
exclude module: 'httpclient'
exclude module: 'json'
exclude group: 'org.apache.httpcomponents'
}
}
...
}
In my case I use this dependency:
compile 'com.github.nkzawa:socket.io-client:0.3.0'
The json is wrong. I changed
implementation('com.github.nkzawa:socket.io-client:0.3.0',{
exclude group:'org.json',module: 'json'
})
add to app/build.gradle
configurations {
all {
exclude module: 'httpclient'
exclude module: 'commons-logging'
}
}