Failed to resolve: com.cepheuen.elegant-number-button:lib:1.0.2 - android

I have added this dependency but still gradle is not able to sync and gives Failed to resolve: com.cepheuen.elegant-number-button:lib:1.0.2
I dont know where i went wrong

In your app level Gradle you might be using mavenCentral().
You need to add jcenter() as well in that.
For older plugins you need jcenter.
See this code of the library to make the required changes
https://github.com/ashik94vc/ElegantNumberButton/blob/master/build.gradle

Related

Gradle searching at wrong URL for 'io.nano:android-tex:1.0.0'

I cannot start my Android App if it includes the following line in the dependencies of the module level build.gradle file:
dependencies{
...
implementation 'io.nano:android-tex:1.0.0'
...
}
The gradle sync works without errors.
But when I try to start the app, I get the error that io.nano:android-tex:1.0.0 cannot be found. Here is a part of the error log:
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find io.nano:android-tex:1.0.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/io/nano/android-tex/1.0.0/android-tex-1.0.0.pom
- https://repo.maven.apache.org/maven2/io/nano/android-tex/1.0.0/android-tex-1.0.0.pom
Required by:
project :app
It seems to me that the URLs are simply wrong. https://repo.maven.apache.org/maven2/io/nano/android-tex/1.0.0/android-tex-1.0.0.pom does not lead to anywhere useful.
But the library exists on maven (see here: https://mvnrepository.com/artifact/io.nano/android-tex/1.0.0).
Is my gradle not smart enough to search at the right place?
A couple of months ago, I successfully used 'io.nano:android-tex:1.0.0' in a project. But after updating Android Studio to Bumblebee and updating gradle from 7.0.2 to 7.2, it does not work anymore. (I don't know if those upgrades are the reason, though, because it has been months since I had worked on the project the last time).
Can anyone help with this? I just want to find a way to use 'io.nano:android-tex:1.0.0' again in an Android App.
--- EDIT ---
I have also added jcenter to my repositories in my project level gradle file (to check if that makes a difference):
repositories {
google()
mavenCentral()
jcenter()
}
Unfortunately, that does not help.
from github site:
Library is available in jcenter repository, add this script to your build.gradle file to install:
you should add jcenter() to your libs repository, but remember that jcenter is kind-of deprecated. ask lib author for moving to more reliable repository

Error:Could not find com.google.firebase:firebase-plugins:1.1.5

Not able to build the code getting error.
CONFIGURE FAILED in 5s
Could not find com.google.firebase:firebase-plugins:1.1.5.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.pom
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.jar
https://jcenter.bintray.com/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.pom
https://jcenter.bintray.com/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.jar
https://dl.bintray.com/android/android-tools/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.pom
https://dl.bintray.com/android/android-tools/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.jar
Required by:
project :
After lot of googling did not find any working solution.
top level gradle file
apply plugin: 'com.google.gms.google-services'
already added.
google(),jcentre repository added in build.gradle file.
I had the same issue this morning and I resolved adding the following to the repositories block of my project:
jcenter {url 'https://firebase.bintray.com/gradle'}
It seems another case where the artifact gone missing. I found there is another artifact called com.google.firebase:perf-plugin:1.1.5 and use it instead of com.google.firebase:firebase-plugins:1.1.5 to make my build works again. But somehow this is not documented anywhere so i am not sure whether this is intended name changes or not.

AndroidX could not find support-v4.aar

I'm trying to upgrade our app from API 25 to API 28. New gradle plugin performs redirections from old com.android.support:support-v4:* to androidx.legacy:legacy-support-v4:1.0.0-alpha , but ./gradlew build fails to find .aar package for it:
* What went wrong:
Could not resolve all files for configuration ':rubens:noflavorDebugCompileClasspath'.
> Could not find support-v4.aar (androidx.legacy:legacy-support-v4:1.0.0-alpha1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-v4/1.0.0-alpha1/support-v4-1.0.0-alpha1.aar
This name is listed in https://dl.google.com/dl/android/maven2/index.html , but I cannot access that package.
How can I solve that?
The question is pretty old but I'm posting the solution I found... it might help someone in the future.
I added the following in build.gradle:
maven { url 'https://maven.google.com' }

Android Studio installation doesn't work with gradle

I am absolute beginner with Android Studio (especially Gradle) and having big trouble getting Android Studio to work. I downloaded and installed the most recent version of Android Studio (0.8.0). I have set the JDK_HOME variable. However, after I create a new project, I always receive the following message:
Error:Unknown host 'jcenter.bintray.com'.
Enable Gradle 'offline mode' and sync project.
Learn about configuring HTTP proxies in Gradle
If I try to compile the project, I get the following message dialog:
After reading a post, I manually downloaded the Gradle binaries (latest, 2.0), extracted it onto the local drive, went to Settings and set the Gradle path to the respective directory using the following:
I also tweaked the build.gradle file under the project to point to the latest Gradle 2.0 version. However, now I get the following error message:
Error:A problem occurred configuring root project 'HelloAndroidStudio'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:2.0.+.
Required by:
:HelloAndroidStudio:unspecified
Failed to list versions for com.android.tools.build:gradle.
Unable to load Maven meta-data from http://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml.
Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml'.
jcenter.bintray.com
Please can someone help. Being my first time with Gradle, I have been trying for so many days without any clue to the problem. Thanks.
Change the Gradle version to lower ones and restart the Android Studio, you may get it.
Add this in build.gradle
classpath 'com.android.tools.build:gradle:1.1.0'
Setting the http_proxy under appearance & behaviour -> system settings -> http proxy has solved the problem
Change to the latest classpath in the dependencies.
For AS 1.5.1 I will do like this :
buildscript {
repositories {
jcenter()
}
dependencies {
**classpath 'com.android.tools.build:gradle:1.5.0'**
}
}

Android Studio stuck when creating new Project on Gradle: Configure Project or Gradle: Resolve Dependencies ':classpath:'

Using the new project wizard to create a new Android application, The IDE gets stuck before I can even see the Code files. After trying to create many types of projects, It tells me that it is building and the IDE only shows a Loading box that says either:
Gradle: Configure Project
or
Gradle: Resolve Dependencies ':classpath:'
I went out to lunch and when I came back I saw:
Error:Could not HEAD 'http://jcenter.bintray.com/com/android/tools/build/builder-model/0.12.1/builder-model-0.12.1.jar'. Received status code 500 from server: Internal Server Error
Enable Gradle 'offline mode' and sync project
Bintray has experienced momentary timeouts yesterday due to a change to one of the cluster nodes in Dallas.
It looks like you've happened to hit that exact node at that exact time.
The issue has been sorted out after a couple of minutes, so there is no real need to change anything on your side.
Actually, keeping jcenter() in your script is preferable since it's a super-set of Maven Central.
In order to solve it, I went to File -> Project Structure -> Project and changed:
Android Plugin Repository and Default Plugin Repository from their default values of
jCenter()
to
mavenCentral
I had a similar problem and was able to use both repositories by including them both in my build.gradle in my android directory:
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
This is an adjustment to #MHDante's answer - instead of replacing one with the other, you can use both!
I was heaving the same/similar problem:
Error:A problem occurred configuring root project 'X'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:0.12.+.
Required by:
:X:unspecified
Failed to list versions for com.android.tools.build:gradle.
Could not list versions using M2 pattern 'http://jcenter.bintray.com/[organisation]/[module]/[revision]/[artifact]-revision.[ext]'.
Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/'. Received status code 401 from server: Authorization Required
But I resolved it by calling synchroise and then rebuilding the project.

Categories

Resources