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

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

Closed
shenhuanet opened this issue Dec 14, 2017 · 8 comments

Comments

@shenhuanet
Copy link

solve the exception is reduce the version.

@sjudd
Copy link
Collaborator

sjudd commented Dec 14, 2017

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().

@tysheng
Copy link

tysheng commented Dec 15, 2017

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

@rongbangou
Copy link

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

@Manikkumar1988
Copy link

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)

@sjudd
Copy link
Collaborator

sjudd commented Dec 18, 2017

Duplicate of #2730

@sjudd sjudd marked this as a duplicate of #2730 Dec 18, 2017
@sjudd sjudd closed this as completed Dec 18, 2017
@sjudd
Copy link
Collaborator

sjudd commented Dec 18, 2017

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

@jackie-d
Copy link

jackie-d commented Jan 2, 2018

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

@jackie-d
Copy link

jackie-d commented Jan 2, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants