Firebaseui-android: Cannot Resolve Symbol new FirebaseImageLoader.Factory()

Created on 23 Nov 2017  Â·  6Comments  Â·  Source: firebase/FirebaseUI-Android

Dear all,

I was following the guide on Git Wiki for Storage

Dependencies
compile 'com.firebaseui:firebase-ui-storage:3.1.0'
compile 'com.github.bumptech.glide:glide:4.1.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'

In MyAppGlideModule, on the following line...

registry.append(StorageReference.class, InputStream.class, new FirebaseImageLoader.Factory());

I'm getting Cannot Resolve Symbol on Factory(). Screenshot below...

image

I checked the source code and the Inner Static class Factory is present in the code.

What could be wrong? I'm stuck and cannot complete the Image Download part, so any help would be appreciated!

Thanks in advance...

SG

Most helpful comment

Just a small update:
To fix the issue, include firebase-ui-storage in your Gradle dependencies.

implementation 'com.firebaseui:firebase-ui-storage:3.3.0'

The import responsible for FirebaseImageLoader is

import com.firebase.ui.storage.images.FirebaseImageLoader;

All 6 comments

Dear all,

For now, on a hint from google, I have commented all the code in the class and it seems to work...

image

Hope this is by design :smile:

Regards,

SG

@sgatade this is not intended and the Factory class is exposed here:
https://github.com/firebase/FirebaseUI-Android/blob/73a696e30200adbacf651a0f49f168364f8ea52b/storage/src/main/java/com/firebase/ui/storage/images/FirebaseImageLoader.java#L58

When you say it "works" what do you mean? Can you load Firebase images from Glide even with that code commented out? I doubt it...

Closing due to lack of update and the indication (in previous comment) that @sgatade got things working,

Apologies for not responding... @samtstern : YES! I am loading images without the code (commented out) and its working perfectly...

Regards,

SG

Its still working for me without the code inside the loader :D...

Regards,

SG

On Wed, Jan 17, 2018 at 1:53 AM, Samuel Thomas notifications@github.com
wrote:

I have the same problem but I am unable to load images.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1029#issuecomment-358092729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMvjbrd5zmayS4VrFMoGfmyuQpU4Dj0Eks5tLQUkgaJpZM4Qou2M
.

--
Thanks and regards,

Shailendra Gatade
Mobile: +919881464770

Just a small update:
To fix the issue, include firebase-ui-storage in your Gradle dependencies.

implementation 'com.firebaseui:firebase-ui-storage:3.3.0'

The import responsible for FirebaseImageLoader is

import com.firebase.ui.storage.images.FirebaseImageLoader;
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  5Comments

s-p-a-r-k picture s-p-a-r-k  Â·  5Comments

RedCider picture RedCider  Â·  5Comments

samtstern picture samtstern  Â·  3Comments

akrmn picture akrmn  Â·  4Comments