karandpr / cordova-plugin-android-rootbeer

A wrapper plugin for rootbeer library. This library is used to detect root on Android Devices.
Apache License 2.0
7 stars 7 forks source link

Could not find com.github.scottyab:rootbeer:1a87fc43254349a7bfe72a8e57e8aa2662f07130 #7

Closed CaioMelo8 closed 1 year ago

CaioMelo8 commented 1 year ago

I've been using this plugin in an app for years now, but suddenly the Android build started failing with this error:

Captura de Tela 2022-10-14 às 10 50 41

I've done a quick analysis and realized that the original Scott's RootBeer library commit referenced in the build-extras.gradle by the plugin references a commit that apparently doesn't exist anymore in Jitpack.

repositories{
    maven { url 'https://jitpack.io' }
}

dependencies {
    compile 'com.github.scottyab:rootbeer:1a87fc43254349a7bfe72a8e57e8aa2662f07130'
}

As a temporary fix, I swapped the commit in build-extras.gradle for the most recent commit, which can be still be found on Jitpack. In the end, the build-extras.gradle file stayed like this:

repositories{
    maven { url 'https://jitpack.io' }
}

dependencies {
    compile 'com.github.scottyab:rootbeer:091a157959'
}

Honestly, I haven't checked if there's any breaking changes between these commits, but it got my Android build working again, so I'll stick with that for now.

I'll keep this issue here for anyone who has the same trouble, but I plan of adding a PR to fix this, eventually.