ToastCompat
ToastCompat copied to clipboard
Having "android.enableJetifier=false", the IDE says this library won't allow it
It says this:
Your project has set `android.useAndroidX=true`, but configuration `prodDebugRuntimeClasspath` still contains legacy support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set `android.enableJetifier=true` in the `gradle.properties` file to migrate your project to AndroidX (see https://developer.android.com/jetpack/androidx/migrate for more info).
The following legacy support libraries are detected:
prodDebugRuntimeClasspath -> me.drakeet.support:toastcompat:1.1.0 -> com.android.support:support-annotations:27.1.1
Please update the library so that we won't need this flag anymore.
Since this repo seems to be abandoned I was looking for an alternative.
There a currently two forks of this repo which moved to AndroidX:
- https://github.com/PeterNguyen0210/ToastCompat
- https://github.com/kakarrot/ToastCompat
I think one should be able to use the forks via JitPack without big changes.
@henningBunk I've decided to make my own repository, which includes various common things that I use (either for workarounds, or just common), including this one: https://github.com/AndroidDeveloperLB/CommonUtils