nostra13 / Android-Universal-Image-Loader

Powerful and flexible library for loading, caching and displaying images on Android.
Apache License 2.0
16.78k stars 6.1k forks source link

E/ImageLoader: No field mMaxWidth in class Landroid/widget/ImageView; #1356

Open AmirMukhtar16 opened 4 years ago

AmirMukhtar16 commented 4 years ago

java.lang.NoSuchFieldException: No field mMaxWidth in class Landroid/widget/ImageView; (declaration of 'android.widget.ImageView' appears in /system/framework/framework.jar!classes3.dex)

Issue is occurring in ANDROID 10

niteshfel commented 4 years ago

How can we resolved this issue android Q ?? Can you guide some steps for same

divyavyas12 commented 4 years ago

I am facing same issue.

mobielbekeken-thijs commented 4 years ago

This is related to #1343 And fixed in this commit: https://github.com/nostra13/Android-Universal-Image-Loader/commit/f6a9615868482672c3630cb7db6dcf43391e80de

nrazon commented 4 years ago

@nostra13 You mentioned that you don't have time to new development; but you committed a fix for android 10 related bugs. Does that mean we will expect a new release soon for this great library?

GovindaPaliwal commented 4 years ago

@nrazon issue fixed. For now don't use implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' or .jar You can download library as zip and add manually as module. I am facing same issue, but this is worked in my case.

fixed in this commit: f6a9615

mobielbekeken-thijs commented 4 years ago

@GovindaPaliwal @nrazon You can simply use this commit bij using JitPack:

In your build.gradle (app level) file, add:

repositories {
    maven { url "https://jitpack.io" }
}

And replace implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' with: implementation 'com.github.nostra13:Android-Universal-Image-Loader:f6a9615868482672c3630cb7db6dcf43391e80de'

CapnSpellcheck commented 4 years ago

Hello, @thijsonline when I try to use that implementation I receive the following after doing Gradle sync:

ERROR: Unable to resolve dependency for ':app@originalDebugAndroidTest/compileClasspath': Could not resolve com.github.nostra13:Android-Universal-Image-Loader:f6a9615868482672c3630cb7db6dcf43391e80de.

When I click on "Show Details" I don't find any further details. Does anyone have a suggestion for how to fix?

CapnSpellcheck commented 4 years ago

I harassed jitpack.io and got their build to work I'm using this implementation and the build is done, so if their cache works then you guys should be able to use this: implementation 'com.github.nostra13:Android-Universal-Image-Loader:458df4da2e'

advait2205 commented 4 years ago

@thijsonline man i literally wanna thank you for the way you gave man my project was stuck for like 1 month cuz of that..Man u are saviour thx my man..:)