AndroidImageSlider
AndroidImageSlider copied to clipboard
Compatible with the las Picasso Version
Please, make compatible with the last picasso version, in BaseSliderView.java
Last version: com.squareup.picasso:picasso:2.71828
@albetoetecnia
Library already compatible with latest version. Just set up your picasso
Java:
textSliderView.setPicasso(Picasso.get());
or Kotlin:
textSliderView.picasso = Picasso.get()
P.S. @daimajia Thanks for library 😄
BaseSliderView.java is Cannot be modified,read-only Not solved
@Gui-kai Please check this answer https://github.com/daimajia/AndroidImageSlider/issues/291#issuecomment-302918655
@YuraAAA Nice! I used CustomBaseSliderView replace textSliderView,But I found a problem.No animation is loaded, and CustomBaseSliderView should have a ProgressBar like textSliderView when a network connection is abnormal,I hope to be able to.thank you very much
@YuraAAA Excuse me,The problem has been solved.thank you very much
still error if with proguard
Warning: com.daimajia.slider.library.SliderTypes.BaseSliderView: can't find referenced method 'com.squareup.picasso.Picasso with(android.content.Context)' in program class com.squareup.picasso.Picasso
still error if with proguard
Warning: com.daimajia.slider.library.SliderTypes.BaseSliderView: can't find referenced method 'com.squareup.picasso.Picasso with(android.content.Context)' in program class com.squareup.picasso.Picasso
Did you extends BaseSliderView? Can you please paste your code?
App build run correctly and app launch correctly in debug mode, error hapend when build with proguard enabled and minifyEnabled true
, this is my proguard config
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase -dontwarn javax.annotation.** -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase -dontwarn org.codehaus.mojo.animal_sniffer.* -dontwarn okhttp3.internal.platform.ConscryptPlatform
Same here.
The problem is here: library/src/main/java/com/daimajia/slider/library/SliderTypes/BaseSliderView.java Line 210
Picasso doesn't have anymore .with method "Picasso.with(mContext)" It should be like this instead (without using context param) : "Picasso.get()"
Someone can make a fork and and this library to maven so we can use it with this fix?
@YuraAAA Thanks, it works.
I followed all the steps ,still I am getting this error with proguard enabled. com.daimajia.slider.library.SliderTypes.BaseSliderView: can't find referenced method 'com.squareup.picasso.Picasso with(android.content.Context)' in program class com.squareup.picasso.Picasso Please, make compatible with the last picasso version.
@KhadkaRabindra I think you can exclude this class from proguard config :)
@YuraAAA I can't get it . what is Picasso in Picasso.get()? and how can change picasso version? i need to use com.squareup.picasso:picasso:2.71828
@Masoudmjm i think you can clone/download project, add as library and modify picasso dependency :)
You can check this library https://github.com/OpenSooq/Pluto it has the ability to have full control over your views and layout and not depending on any image library