Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find symbol import okhttp3.internal.Platform #27

Closed
joreilly opened this issue Feb 26, 2017 · 3 comments
Closed

cannot find symbol import okhttp3.internal.Platform #27

joreilly opened this issue Feb 26, 2017 · 3 comments

Comments

@joreilly
Copy link

joreilly commented Feb 26, 2017

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
@joreilly joreilly changed the title cannot find symbol import okhttp3.internal.Platform; cannot find symbol import okhttp3.internal.Platform Feb 26, 2017
@bryanleesh
Copy link

Having the same issue.

@jgilfelt
Copy link
Owner

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')?

@jgilfelt jgilfelt closed this as completed Mar 5, 2017
@bryanleesh
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants