Could not find com.github.scottyab:showhidepasswordedittext:0.6 - java

I am trying to add this dependency
com.github.scottyab:showhidepasswordedittext:0.6. in an android app. On building the project I am having this error critically
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find com.github.scottyab:showhidepasswordedittext:0.6.
Required by:
push:app:unspecified
Please what am I doing wrong. Kindly assist

latest version of dependency is :
dependencies {
compile 'com.github.scottyab:showhidepasswordedittext:0.8'
}
and don't forgot to add maven repo in the project-level build.gradle file
allprojects {
repositories {
maven {
url "https://jitpack.io"
}
}
}
for more information check here

Related

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. problem

I have next problem with my android studio
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
I allready tried this solutions but not working.
Android studio 3.2.1 ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'
Error "Could not resolve all files for configuration" in Android Studio
problem ocours when i add dependency from thirdpart library to gradle.
Make sure your settings.gradle file has the maven url maven { url='https://jitpack.io'}
Should look like this :
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven { url='https://jitpack.io'}
}

How do I install jtransc?

The jtransc Github README shows there is a gradle plugin I can add with:
plugins {
id "com.jtransc" version "0.6.8"
}
But whenever I sync the project it shows the following error:
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.jtransc:jtransc-main:unspecified.
Searched in the following locations:
- https://plugins.gradle.org/m2/com/jtransc/jtransc-main/unspecified/jtransc-main-unspecified.pom
- https://plugins.gradle.org/m2/com/jtransc/jtransc-main/unspecified/jtransc-main-unspecified.jar
Required by:
project : > com.jtransc:com.jtransc.gradle.plugin:0.6.8 > gradle.plugin.com.jtransc:jtransc-gradle-plugin:0.6.8
and if I go to those URLs in my browser, it returns a 404.
How can I get the jtransc gradle plugin to work in my project?
No idea why plugins block doesn't work, but the following does the job:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.jtransc:jtransc-gradle-plugin:0.6.8"
}
}
apply plugin: "com.jtransc"
Maybe it's published incorrectly because this gradle.plugin. prefix here seems totally out of place.

An error occurred configuring root project 'BoomMenu-master'

When I am importing the project, I am getting the following error:
Error:A problem occurred configuring root project 'BoomMenu-master'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4.
Required by: :BoomMenu-master:unspecified
> No cached version of com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4 available for offline mode.
> Could not resolve com.github.dcendents:android-maven-gradle-plugin:1.3. Required by:
:BoomMenu-master:unspecified
> No cached version of com.github.dcendents:android-maven-gradle-plugin:1.3 available for
offline mode.
There are some solution which i had applied previously that ,
1 . Try to rebuild your project for 2 to 3 times.
2 . Open your build.gradle file and then add line at top that these lines ,here you must choose build gradle version according to your sdk .
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
3. Open your library build.gradle file say in yours you must open boommenu file .
add these lines at top ,
apply plugin: 'com.android.application'
4.Try to changed proxyPort to 8080 and used jcenter instead of Maven. But i had to apply expeption to use HTTP instead of HTTPS. This is what i have in my gradle.build for build script and allprojects
buildscript {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
}
allprojects {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
}

gradle 2.0.0 beta 7 missing

I keep getting this error. Any ideas?
What went wrong:
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:classpath'.
Could not find com.android.tools.build:gradle:2.0.0-beta7.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-beta7/gradle-2.0.0-beta7.pom
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-beta7/gradle-2.0.0-beta7.jar
You are referring maven central for finding android plugin artifacts, android gradle plugin is published at jcenter
add jcenter() to buildscript.repositories block in your root build.gradle file.
It should look like as below:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:X.X.X' // your verison
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

Android Maven Could not resolve dependencies for configuration

I'm facing this problem currently. The project did't have any build problems previously. Only today when I was trying to build it gives this error.
Gradle: A problem occurred configuring project ':Project'.
Could not resolve all dependencies for configuration ':Project:classpath'.
Could not download artifact 'org.ow2.asm:asm-analysis:4.0#jar'
Artifact 'org.ow2.asm:asm-analysis:4.0#jar' not found.
Seems like asm-analysis:4.0 is not found in maven repo.
(Is this link correct? http://search.maven.org/#browse%7C1692005229)
Inside my build.gradle file, I've set the repository to mavenCentral()
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
} }
I am not sure how to fix this problem, any suggestion is appreciated.
Thank you.
Faced the same problem, ow2.org has separate repository
buildscript {
repositories {
maven { url "http://repository.ow2.org/nexus/content/repositories/releases/" }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}

Categories

Resources