Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

> Could not find com.github.Gruzer:simple-gauge-android:0.3.1. #24

Open
sidtupper opened this issue Nov 20, 2021 · 3 comments
Open

> Could not find com.github.Gruzer:simple-gauge-android:0.3.1. #24

sidtupper opened this issue Nov 20, 2021 · 3 comments

Comments

@sidtupper
Copy link

sidtupper commented Nov 20, 2021

I'm using Android Studio 2020.3.1. patch 3 and Gradle JDK 11.0.10 with Windows 11.

Attempting to reproduce the gauge widget in a Kotlin project, following the README, I added "maven { url 'https://jitpack.io' }" to the project build.gradle under buildscript { repositories

and I added the dependency to build.gradle (:app) :

  dependencies {  implementation 'com.github.Gruzer:simple-gauge-android:0.3.1' }

but the build fails :

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.github.Gruzer:simple-gauge-android:0.3.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/Gruzer/simple-gauge-android/0.3.1/simple-gauge-android-0.3.1.pom
- https://repo.maven.apache.org/maven2/com/github/Gruzer/simple-gauge-android/0.3.1/simple-gauge-android-0.3.1.pom
- https://jcenter.bintray.com/com/github/Gruzer/simple-gauge-android/0.3.1/simple-gauge-android-0.3.1.pom

Also, it's not clear to me where to put
<com.ekn.gruzer.gaugelibrary.HalfGauge
android:id="@+id/halfGauge"
android:layout_width="200dp"
android:layout_height="200dp" />

How can I get past this?

@Element21302
Copy link

Make sure "maven { url 'https://jitpack.io' }" is also under allprojects { repositories in the project build.gradle :

<com.ekn.gruzer.gaugelibrary.HalfGauge
android:id="@+id/halfGauge"
android:layout_width="200dp"
android:layout_height="200dp" />

This should go in the XML layout file where you would like the gauge to display.

@sidtupper
Copy link
Author

Thanks for responding. I installed the example successfully. I only want to use the half gauge. How can I extract the code from the example for just the one fragment?

@paul035
Copy link

paul035 commented Jan 20, 2022

I'm using Android Studio 2020.3.1. patch 3 and Gradle JDK 11.0.10 with Windows 11.

Attempting to reproduce the gauge widget in a Kotlin project, following the README, I added "maven { url 'https://jitpack.io' }" to the project build.gradle under buildscript { repositories

and I added the dependency to build.gradle (:app) :

  dependencies {  implementation 'com.github.Gruzer:simple-gauge-android:0.3.1' }

but the build fails :

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.github.Gruzer:simple-gauge-android:0.3.1.
Searched in the following locations:

Also, it's not clear to me where to put <com.ekn.gruzer.gaugelibrary.HalfGauge android:id="@+id/halfGauge" android:layout_width="200dp" android:layout_height="200dp" />

How can I get past this?

Hey..I wanna know where did you place that allProjects{...} in your gradle file. I'm doing that and getting this exception.
Could not find method allProjects() for arguments [build_65ll2u56w3rirmjmxviv24xw$_run_closure1$_closure2@3a95484a] on object of type org.gradle.api.internal.initialization.DefaultScriptHandler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants