'Every time I update a dependency version in my gradle, it can't seem to resolve the library? For example I tried upgrading OneSignal and it won't work

I recently tried updating a version of OneSignal in my gradle dependencies. Upon adding the new version and syncing, my project can no longer resolve or import OneSignal. But if I revert back to the old version it works fine. Is there an isssue connecting and downloading the latest version? Is it a setting in my Android Studio?

I've noticed this happen with every dependency i tried to update.

Please help me :)



Sources

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

Source: Stack Overflow

Solution Source