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

Crashes with latest Picasso added in the project #95

Open
tfKamran opened this issue Feb 13, 2021 · 1 comment
Open

Crashes with latest Picasso added in the project #95

tfKamran opened this issue Feb 13, 2021 · 1 comment

Comments

@tfKamran
Copy link

Code copied from README.md:

ScrollGalleryView
    .from(binding.scrollGalleryView)
    .settings(
        GallerySettings
            .from(childFragmentManager)
            .thumbnailSize(100)
            .enableZoom(true)
            .build()
    )
    .add( image(imageUrl))
    .build()

This is the crash log I get:

java.lang.NoSuchMethodError: No static method with(Landroid/content/Context;)Lcom/squareup/picasso/Picasso; in class 
Lcom/squareup/picasso/Picasso; or its super classes (declaration of 'com.squareup.picasso.Picasso' appears in 
/data/app/in.doma.channelpartner-njuQLWJ7OnSU6M5dJvb_pw==/base.apk)
        at com.veinhorn.scrollgalleryview.loader.picasso.PicassoImageLoader.loadThumbnail(PicassoImageLoader.java:44)
        at com.veinhorn.scrollgalleryview.ScrollGalleryView.addMedia(ScrollGalleryView.java:197)
        at com.veinhorn.scrollgalleryview.builder.GalleryBuilderImpl.build(GalleryBuilderImpl.java:63)

Picasso in my project:

com.squareup.picasso:picasso:2.71828
@jc-yoonet
Copy link

You can use these to your app.gradle

implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.veinhorn.scrollgalleryview:library:1.2.6'
implementation 'com.veinhorn.scrollgalleryview:picasso-loader:1.2.0'

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