'Could not determine artifacts for com.github.Kunzisoft:Android-SwitchDateTimePicker:1.9: Skipped due to earlier error

Just building my new app and after launching I get this error in my build.gradle file can anyone help?

Could not determine artifacts for com.github.Kunzisoft:Android-SwitchDateTimePicker:1.9: Skipped due to earlier error

I have made sure the app in settings is offline but still get same error.



Solution 1:[1]

stopping vpn and invalidate cache and restart solved the problem

Solution 2:[2]

Fast answer - connect to any VPN (in my case USA VPN worked)

Explanation:

This depends on Jitpack libraries in your project. I recently had the same issue when got the new project from a client. The client then told me that the project was building from scratch successfully, and after some research I've found that loading of some Jitpack libraries constantly failed. At first I tried to increase gradle connection timeout, but then I suddenly found that just connecting to USA VPN worked

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohammad Sommakia
Solution 2 Izya Pitersky