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

CheckResult and NoNull for AndroidX #3749

Closed
cesariel opened this issue Jul 10, 2019 · 4 comments
Closed

CheckResult and NoNull for AndroidX #3749

cesariel opened this issue Jul 10, 2019 · 4 comments
Labels

Comments

@cesariel
Copy link

cesariel commented Jul 10, 2019

Error:

symbol:   class NonNull
  location: class GeneratedAppGlideModuleImpl
com/bumptech/glide/GeneratedAppGlideModuleImpl.java:41: error: cannot find symbol
  @NonNull
   ^

They need this Libraries to work:

import androidx.annotation.CheckResult;
import androidx.annotation.NonNull;

With:

implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
@Mouadabdelghafouraitali

try this :

annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'androidx.annotation:annotation:1.1.0'

if the problem still present try to exclude annotation

 implementation('com.github.bumptech.glide:glide:4.9.0') {
        exclude group: 'androidx.annotation'
    }

@stale
Copy link

stale bot commented Jul 17, 2019

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

@stale stale bot added the stale label Jul 17, 2019
@stale stale bot closed this as completed Jul 24, 2019
@livyathan
Copy link

I'm having this same issue, but only under certain conditions the compiler will fail.

I think these are the relevant parts from my gradle file. I added some stuff based on some comments:

compileSdkVersion 29
buildToolsVersion '29.0.1'
.
.
minSdkVersion 21
targetSdkVersion 29
.
.
implementation 'androidx.appcompat:appcompat:1.0.2'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation("com.github.bumptech.glide:glide:4.9.0") {
        exclude group: 'com.android.support'
        exclude group: 'androidx.annotation'
}
implementation "androidx.annotation:annotation:1.1.0"
implementation "com.github.bumptech.glide:okhttp3-integration:4.9.0"

The problem started when I added these two classes:

https://gist.github.com/Johnnyne/433b9458593c62df4e6d83f9377be66b
https://gist.github.com/Johnnyne/cd16619a9d1728949891c9fe13017bd8

Which are supposed to add support for a progress listener, which I need for my project. This was discussed here:

#232

If I add the ProgressAppGlideModule class that extends from AppGlideModule and override registerComponents class, then it causes the build issue.

I guess is somehow related to the @GlideModule annotation or something.

Any ideas?

@kingmaf03
Copy link

try this :

annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'androidx.annotation:annotation:1.1.0'

if the problem still present try to exclude annotation

 implementation('com.github.bumptech.glide:glide:4.9.0') {
        exclude group: 'androidx.annotation'
    }

It works for me.. thanks

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

No branches or pull requests

4 participants