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

java.lang.String cannot be cast to java.lang.Object[] #3414

Closed
hzyxym opened this issue Nov 19, 2018 · 3 comments
Closed

java.lang.String cannot be cast to java.lang.Object[] #3414

hzyxym opened this issue Nov 19, 2018 · 3 comments
Labels

Comments

@hzyxym
Copy link

hzyxym commented Nov 19, 2018

build:gradle:3.1.4
glide:4.8.0
okhttp3 -3.3.1

code:
GlideApp.with(mContext)
.load(imgUrl)
.transforms(new CenterCrop(), new RoundedCorners(12))
.placeholder(defaultDrawable)
.into(mImageView);

error msg:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Object[]
at android.support.v4.util.SimpleArrayMap.allocArrays(SimpleArrayMap.java:183)
at android.support.v4.util.SimpleArrayMap.put(SimpleArrayMap.java:437)
at com.bumptech.glide.util.CachedHashCodeArrayMap.put(CachedHashCodeArrayMap.java:34)
at com.bumptech.glide.request.RequestOptions.transform(RequestOptions.java:1315)
at com.bumptech.glide.request.RequestOptions.transform(RequestOptions.java:1269)
at com.bumptech.glide.request.RequestOptions.transforms(RequestOptions.java:1237)
at com.phone580.base.GlideOptions.transforms(GlideOptions.java:561)
at com.phone580.base.b.a(GlideRequest.java:573)
at com.phone580.base.ui.widget.CommonBanner.onCreateItemView(CommonBanner.java:82)
at com.flyco.banner.widget.Banner.base.BaseBanner$a.instantiateItem(BaseBanner.java:454)
at com.flyco.banner.widget.LoopViewPager.b.instantiateItem(LoopPagerAdapterWrapper.java:88)
at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1004)
at android.support.v4.view.ViewPager.populate(ViewPager.java:1186)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:663)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:625)
at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:617)
at com.flyco.banner.widget.LoopViewPager.LoopViewPager.setCurrentItem(LoopViewPager.java:70)
at com.flyco.banner.widget.LoopViewPager.LoopViewPager$1.onPageScrollStateChanged(LoopViewPager.java:198)
at android.support.v4.view.ViewPager.dispatchOnScrollStateChanged(ViewPager.java:1958)
at android.support.v4.view.ViewPager.setScrollState(ViewPager.java:491)
at android.support.v4.view.ViewPager$3.run(ViewPager.java:266)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
at android.view.Choreographer.doCallbacks(Choreographer.java:732)
at android.view.Choreographer.doFrame(Choreographer.java:661)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:187)
at android.app.ActivityThread.main(ActivityThread.java:7025)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)

@stale
Copy link

stale bot commented Nov 26, 2018

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 Nov 26, 2018
@stale stale bot closed this as completed Dec 3, 2018
@sjudd
Copy link
Collaborator

sjudd commented Dec 19, 2018

What version of Android was this?

Similar to #3296

@hzyxym
Copy link
Author

hzyxym commented Jan 17, 2019

What can I do for this?sir

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

2 participants