Hey, cannot find `.addBodyDecoder(decoder)` buil...
# chucker
s
Hey, cannot find
.addBodyDecoder(decoder)
builder method in v3.4.0. Can someone help?
v
Hello. This function appeared after 3.4.0 release, so it is available in the latest snapshot. https://github.com/ChuckerTeam/chucker#snapshots-
👌 2
s
Facing this while building apk whereas it resolves correctly
Copy code
Could not GET '<https://s3-ap-southeast-1.amazonaws.com/godel-release/godel/com/github/chuckerteam/chucker/library/develop-SNAPSHOT/maven-metadata.xml>'. Received status code 403 from server: Forbidden
v
I see that you have
develop-SNAPSHOT
, so assume that you decided to go with JitPack. Have you added
<http://jitpack.io|jitpack.io>
to project’s repositories block?
s
yes
The deps resolve correctly. Only when I try to build, I get the above error
m
Can you share your build config or a sample project?
s
Copy code
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation rootProject.ext.supportAppCompatLibrary
    implementation rootProject.ext.gms
    //implementation 'com.scottyab:rootbeer-lib:0.0.6'

    // Dependency for test
    testImplementation rootProject.ext.junit
    androidTestImplementation rootProject.ext.supportTestRunner
    androidTestImplementation rootProject.ext.espressoCore
    testImplementation rootProject.ext.mockitoCore
    androidTestImplementation rootProject.ext.mockitoAndroid
    testImplementation rootProject.ext.powermockMockito2
    testImplementation rootProject.ext.powermockJunit4
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation "com.squareup.retrofit2:retrofit:2.9.0"
    implementation "com.github.chuckerteam.chucker:library:develop-SNAPSHOT"
}
repositories {
    mavenCentral()
    maven { url "<https://jitpack.io>" }
    maven { url "<https://oss.sonatype.org/content/repositories/snapshots/>" }
}
Also, the method is not available in 3.4.1-SNAPSHOT
the
develop
one resolves the method but fails on compilation with a
403
m
It unfortunately works on my end. Looks like an issue with your connection.
Can you download any other repositories using jitpack?
s
yes
as you can see the dependency has resolved correctly. I get the error on building
v
There is something with your config. I tried to use Jitpack build as well and had no issues just like @MiSikora
s
Yes
Its resolved now. Thanks for your help everyone! Awesome work!
v
Out of curiosity - could you share what helped you? It might be useful for other people who might struggle with the same issue in future. Would be very grateful.
s
I had placed the maven url in the wrong gradle file. placing it with exisiting maven repos fixed the issue for me!
👍 1