Open mrbaco opened 3 years ago
This workaround helped me
testCompile ('com.browserup:browserup-proxy-core:2.1.2'){
exclude group: 'io.netty', module: 'netty-all'
// exclude group: 'io.netty', module: 'netty-buffer'
// exclude group: 'io.netty', module: 'netty-codec'
// exclude group: 'io.netty', module: 'netty-common'
// exclude group: 'io.netty', module: 'netty-resolver'
// exclude group: 'io.netty', module: 'netty-transport'
}
testCompile group: 'io.netty', name: 'netty-codec-http', version: '4.1.50.Final'
Although netty-all contains io.netty.handler.codec.http
somehow the compiler could not find it so I decided to exclude netty-all
and keep the modules only. Note that the modules were imported twice except netty-codec-http
so I had to include that separately.
Describe the bug I got Netty dependency error when try to use response listener in my project:
error: package io.netty.handler.codec.http does not exist
Even I add Netty dependency in my project (try to add 4.1.44.Final and newer)To Reproduce I prepared a small example for this here: https://github.com/mrbaco/browserup_listeners
Expected behavior Listeners work correctly, there is no dependency error in the project.
Please complete the following information: OS Windows 10, Gradle 6.7, browserup-proxy-core 2.1.2