flutter_jailbreak_detection
flutter_jailbreak_detection copied to clipboard
Could not resolve com.github.scottyab:rootbeer:0.1.0.
For the past few days, I have been unable to build the APK for my application due to the following error:
Could not resolve com.github.scottyab:rootbeer:0.1.0. Required by: project :app > project :flutter_jailbreak_detection
I have been using this package for over 8 months without any issues, and the error seems to have appeared out of nowhere. I am currently using the latest version, 1.10.0, but the error also occurs with versions 1.8.0 and 1.9.0. Does anyone know how to resolve this issue? Any help would be greatly appreciated.
Flutter 3.3.10
normally jitpack allows to get that dependency directly from github.
https://jitpack.io/#scottyab/rootbeer/0.1.0
perhaps there was a temporary issue with jitpack.
change it to com.scottyab:rootbeer-lib:0.1.0 and it will work
my flutter configuration is Flutter 3.13.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2524052335 (7 weeks ago) • 2023-09-06 14:32:31 -0700 Engine • revision b8d35810e9 Tools • Dart 3.1.1 • DevTools 2.25.0
gradle version distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
classpath 'com.android.tools.build:gradle:7.2.2'
I'm getting error 1: Task failed with an exception.
- What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve com.github.scottyab:rootbeer:0.1.0. Required by: project :app > project :flutter_jailbreak_detection > Could not resolve com.github.scottyab:rootbeer:0.1.0. > Could not get resource 'https://jitpack.io/com/github/scottyab/rootbeer/0.1.0/rootbeer-0.1.0.pom'. > Could not GET 'https://jitpack.io/com/github/scottyab/rootbeer/0.1.0/rootbeer-0.1.0.pom'. > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Please help to resolve this
change it to com.scottyab:rootbeer-lib:0.1.0 and it will work
I tried but not working for me