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

Program type already present: org.intellij.lang.annotations.JdkConstants$PatternFlags #328

Open
d4rken opened this issue Jul 29, 2018 · 2 comments

Comments

@d4rken
Copy link

d4rken commented Jul 29, 2018

Upgrading Timber from 4.7.0 to 4.7.1 in a library of mine, causes another app using that library to fail building with this error.

AGPBI: {"kind":"error","text":"Program type already present: org.intellij.lang.annotations.JdkConstants$PatternFlags","sources":[{}],"tool":"D8"}

This can be fixed by including in my build.gradle

configurations {
    cleanedAnnotations
    compile.exclude group: 'org.jetbrains' , module:'annotations'
}

Might be related to #327

@ashughes
Copy link

I'm seeing this error after switching on R8 using android.enableR8=true in Android Studio 3.3.1. Works fine with R8 disabled (but proguard enabled). Timber version is 4.7.1.

@d4rken
Copy link
Author

d4rken commented Feb 23, 2019

Still seeing this, I'm still using the posted workaround. I'm not using enableR8

mtotschnig added a commit to mtotschnig/MyExpenses that referenced this issue Apr 16, 2019
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

2 participants