jgilfelt / chuck

An in-app HTTP inspector for Android OkHttp clients
Apache License 2.0
4.68k stars 452 forks source link

cannot find symbol import okhttp3.internal.Platform #27

Closed joreilly closed 7 years ago

joreilly commented 7 years ago

Am getting following error below after adding following to build.gradle.

    debugCompile 'com.readystatesoftware.chuck:library:1.0.4'
    releaseCompile 'com.readystatesoftware.chuck:library-no-op:1.0.4'
LoggingInterceptor.java:35: error: cannot find symbol
import okhttp3.internal.Platform;
                       ^
  symbol:   class Platform
  location: package okhttp3.internal
bryanleesh commented 7 years ago

Having the same issue.

jgilfelt commented 7 years ago

Assuming you've tried all the Gradle voodoo, like resyncing the project and cleaning the build, could you let me know what Gradle version you're using (specified by classpath 'com.android.tools.build:gradle:x.x.x' in your project's build.gradle) and specifically which gradle task the build fails at?

Do you have custom build types specified other than debug and release?

Does it work if you add the compile dependency unqualified (e.g. compile 'com.readystatesoftware.chuck:library:1.0.4')?

bryanleesh commented 7 years ago

@jgilfelt hey im still not able to build the project after adding this library. Attached is the error I get. http://imgur.com/a/1xHJL

Build gradle im using, classpath 'com.android.tools.build:gradle:2.3.0' I don't have any custom build aside from debug and release.

Tried unqualified dependency as well, not working.