nostra13/Android-Universal-Image-Loader

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

AmirMukhtar16 opened this issue · 9 comments

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

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

I am facing same issue.

This is related to #1343
And fixed in this commit: f6a9615

@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?

@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

@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'

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?

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'

@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..:)