InflationX / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
1.09k stars 81 forks source link

NoClassDefFoundError: Failed resolution of: Landroidx/core/os/BuildCompat; #37

Closed bhautikkeraliya closed 3 years ago

bhautikkeraliya commented 5 years ago

Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.core.os.BuildCompat" on path: DexPathList. Suppressed: java.io.IOException: No original dex files found for dex location

About My App:- -App in java language -not using android x -App testing in Android 8.0 (oreo) - SDK (26)

sathamkhussain commented 5 years ago

@bhautikkeraliya Did you fix this issue? Am also facing the same issue.

SwathyMothilal commented 5 years ago

Stack trace: Caused by: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.core.os.BuildCompat" on path:DexpathList

@bhautikkeraliya Even I am facing the same issue

chrisfoulds commented 5 years ago

Same issue

zhangweifu0621 commented 5 years ago

Same Issue

sesesmith30 commented 5 years ago

i used version 'io.github.inflationx:viewpump:1.0.0' of viewPump and it worked

candeiasdan commented 5 years ago

Same issue. Not working with io.github.inflationx:viewpump:2.0.3

yatochk commented 5 years ago

If I used 'io.github.inflationx:viewpump:1.0.0' then I get crash on android 10

aalmodovarr commented 5 years ago

Any news about this issue?

scmyers11 commented 5 years ago

This is causing crashes for our users in production. Is there any movement on this?

AhmedBadrSayed commented 4 years ago

I think the only solution right now that works on all android versions is to migrate to android x

mohkin commented 4 years ago

Same issue

aalmodovarr commented 4 years ago

It works by migrating to AndroidX and with:

implementation 'io.github.inflationx: calligraphy3: 3.1.1' implementation 'io.github.inflationx: viewpump: 2.0.3'

chrisjenx commented 4 years ago

Migrate to Androidx the tools team made it easier especially with the intro of migration in the build tools. https://developer.android.com/jetpack/androidx/migrate#migrate_an_existing_project_using_android_studio

chrisfoulds commented 4 years ago

Look at the code base, this is no longer actively maintained. It took about 4hrs to rip this out and manually specify the fonts in my labels and make all the problems go away, I would advise others to do the same.

lsk-boy-f commented 4 years ago

Same issue. Not working with io.github.inflationx:viewpump:2.0.3

chrisjenx commented 3 years ago

We mentioned in the changelog we only support androidx now, if you still have legacy items use jetifier:

gradle.properties:

android.useAndroidX=true
android.enableJetifier=true