Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.x: error: cannot find symbol class GlideApp

I updated Android Studio from 2.x to 3.x last week end. The project migration was perfect, build was great. And now, from 2 hours, I can't explain why, I can't build, I have this error on Glide now:

Error:(26, 22) error: cannot find symbol class GlideApp

All was good before, I didn't change anything (gradle or configuration), and now this error appears...

For information about Glide, in my Gradle:

annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'
compile 'com.github.bumptech.glide:glide:4.0.0-RC1'
compile 'com.github.bumptech.glide:okhttp3-integration:4.0.0-RC1'

The GlideApp file is generated automatically (I checked it).

So, it's a crazy situation. Thank you very much guys!

like image 384
anthony Avatar asked Jul 31 '17 15:07

anthony


1 Answers

This also happens when you have another error in your code. Gradle doesn't get to generate Glide classes since another error is thrown before it

like image 56
Viral Heat Avatar answered Oct 04 '22 01:10

Viral Heat