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

class file for org.jetbrains.annotations.NotNull not found #295

Closed
d4rken opened this issue Mar 1, 2018 · 4 comments
Closed

class file for org.jetbrains.annotations.NotNull not found #295

d4rken opened this issue Mar 1, 2018 · 4 comments

Comments

@d4rken
Copy link

d4rken commented Mar 1, 2018

Upgrading Timber from 4.5.1 to 4.6.0 causes:

error: cannot access NotNull
  class file for org.jetbrains.annotations.NotNull not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jetbrains.annotations.NotNull not found
1 error
@d4rken
Copy link
Author

d4rken commented Mar 1, 2018

Adding compileOnly 'org.jetbrains:annotations:15.0' to my build.gradle fixes this.

667b9e5 seems to have added the jetbrains annotations?

@JakeWharton
Copy link
Owner

JakeWharton commented Mar 1, 2018 via email

vlazzle added a commit to vlazzle/timber that referenced this issue Mar 20, 2018
We can't assume that dependent projects will have jetbrains annotations
in the classpath.

This is causing problems like JakeWharton#295.
@JakeWharton
Copy link
Owner

Fix was merged.

@dalcomdev
Copy link

Previously it might be fixed but it happens again in "com.jakewharton.timber:timber:5.0.1". Maybe the below line in Timber.kt is causing?

import org.jetbrains.annotations.NonNls

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