Glide: The new version 4.4.0 product a NoSuchMethod (No static method getFont()) Exception in Android Studio 3.0

Created on 14 Dec 2017  路  8Comments  路  Source: bumptech/glide

solve the exception is reduce the version.

question repro-needed

Most helpful comment

different support version led to this exception. I'm using the version 26, but Glide 4.4.0 is 27 inside

All 8 comments

Please always fill out the issue template when filing new issues.

Please provide the full error message and stack trace that you see. As far as I know Glide doesn't use getFront().

different support version led to this exception. I'm using the version 26, but Glide 4.4.0 is 27 inside

I solve by this:
1.update to version 27 , change "compile 'com.android.support:appcompat-v7:27.0.2'" to "implementation 'com.android.support:appcompat-v7:27.0.2'" , change "compile 'com.android.support:design:27.0.2'" to "implementation 'com.android.support:design:27.0.2'"
2.delete ".gradle" folder under your project
3.clean project , regbuild project , sync project

Even after updating to version 27,below crash happens to me

java.lang.NoSuchMethodError: No virtual method iteratorWithAdditions()Landroid/arch/core/internal/SafeIterableMap$ListIterator; in class Landroid/arch/core/internal/SafeIterableMap; or its super classes (declaration of 'android.arch.core.internal.SafeIterableMap' appears in /data/app/challenge.ola.mani.com.maniola-1/base.apk) at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:145) at android.arch.lifecycle.LiveData.setValue(LiveData.java:293) at android.arch.lifecycle.MutableLiveData.setValue(MutableLiveData.java:33) at android.arch.lifecycle.LiveData$2.run(LiveData.java:108) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Duplicate of #2730

@Manikkumar1988 that looks like another support library version conflict? Maybe you're depending on the v26 version of some other support library component?

If anyone has any particular reason why they don't want to update to v27 of the support library let me know. Also let me know if excluding the support library transitive dependency in your Glide import in Gradle doesn't work. See the duplicate issue for a little more detail.

Hi,
I would like to continue using my version 26 for android APIs but need glide.

What's the latest glide release supporting API level 26?

Thanks

Found 4.3.1 works as also mentioned in the duplicated issue.

Would be nice to have multiple supports or to found instructions in the readme.

Btw, thanks for this awesome library.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StefMa picture StefMa  路  3Comments

r4m1n picture r4m1n  路  3Comments

PatrickMA picture PatrickMA  路  3Comments

Morteza-Rastgoo picture Morteza-Rastgoo  路  3Comments

Ncit picture Ncit  路  3Comments