Toasty icon indicating copy to clipboard operation
Toasty copied to clipboard

ERROR: Failed to resolve: com.github.GrenderG:Toasty:1.4.1 with androidx

Open moanes1 opened this issue 5 years ago • 4 comments

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'

moanes1 avatar Mar 29 '19 19:03 moanes1

same here

basit9 avatar Apr 10 '19 11:04 basit9

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'
}

GrenderG avatar Apr 10 '19 14:04 GrenderG

See https://github.com/openhab/openhab-android/blob/master/mobile/build.gradle#L128 for a working setup with AndroidX and Toasty.

mueller-ma avatar Apr 12 '19 19:04 mueller-ma

I have solved this problem by click "Invalidate Caches/Restart...”

bluejake avatar May 08 '19 08:05 bluejake