Toasty
Toasty copied to clipboard
ERROR: Failed to resolve: com.github.GrenderG:Toasty:1.4.1 with androidx
ERROR: Failed to resolve: com.github.GrenderG:Toasty:1.4.1
configuration.implementation 'androidx.appcompat:appcompat:1.0.0'
configuration.implementation "androidx.legacy:legacy-support-v4:1.0.0"
configuration.implementation "androidx.vectordrawable:vectordrawable:1.0.0"
configuration.implementation "androidx.recyclerview:recyclerview:1.0.0"
configuration.implementation "androidx.cardview:cardview:1.0.0"
configuration.implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
same here
Prerequisites
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
...
implementation 'com.github.GrenderG:Toasty:1.4.2'
}
See https://github.com/openhab/openhab-android/blob/master/mobile/build.gradle#L128 for a working setup with AndroidX and Toasty.
I have solved this problem by click "Invalidate Caches/Restart...”