Failed to resolve dependencies .? - android

Hello i have just imported my android studio project from one pc to another one and when building it is showing the error , Unresolved dependencies detected while building project in offine mode . I have unchecked OFFLINE WORK in Gradle settings . After Unchecking it its now showing the error
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:support-v4:23.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar
Required by:
TheFlame:app:unspecified > com.android.support:appcompat-v7:22.2.0
TheFlame:app:unspecified > com.android.support:design:22.2.0
TheFlame:app:unspecified > com.android.support:recyclerview-v7:22.2.0
Could not find com.android.support:support-v4:23.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom
file:/C:/Users/user/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar
Required by:
TheFlame:app:unspecified > me.dm7.barcodescanner:zxing:1.8.3 > me.dm7.barcodescanner:core:1.8.3
can anyone please help me on this fast.

Similiar Issue
Make sure to update both "Android Support Repository" and "Android Support Library" in SDK Manager
And also ensure the Gradle Sync is completed in Android Studio.

Try this:
1) Open SDK Manager
2) Launch standalone SDK Manager
3) Extras and check update for Support Library
4) Install it
5) Sync Gradle

Related

Error while compiling multidex library after updating SDK

I am pretty new to Android Studio.
I have converted my Eclipse project to Android Studio successfully. everything worked fine, until today I updated my SDK and suddenly it started giving me error
> Error: A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:multidex:1.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
https://jitpack.io/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
https://jitpack.io/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
file:/C:/Users/as/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
file:/C:/Users/as/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
file:/C:/Users/as/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
file:/C:/Users/as/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
Required by:
ElalaSeller:app:unspecified
when I rebuild my project. it says
Error:(25, 13) Failed to resolve: com.android.support:multidex:1.0.1
Install Repository and sync project
Show in File
Show in Project Structure dialog
I checked Android support repository is installed.
Any help will be appreciated.
Thank you.
Update : I have checked this Question. most upvoted answer says install Android Support Repository. but in my case i already have installed it. you can see in screenshot i have uploaded. but still getting same error.
I have cleaned my project but still no change.

Android Studio Could not find any matches for com.android.support:appcompat-v7:19.+ as no versions of com.android.support:appcompat-v7 are available

I created a new android application project in android studio. Running the project in Android Studio fails with this error:
*A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any matches for com.android.support:appcompat-v7:19.+ as no
versions of com.android.support:appcompat-v7 are available.*
How can I fix this error?
From Android Studio go to: Tools > Android > SDK Manager
Select and install "Extras > Android Support Repository"
Step1) Go to project structure setting in Android Studio
step2) On left side select you project and then goto dependencies (can be found on the top portion)
step3) Remove current appcompact-v7 and click Add button and select appcompact-v7.23.0.0 and clean your project .it will solve

error when creating new project in android studio

I'm new to android studio. I've created a new project with android studio, when I want to run it I've got this error :
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:21.+
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21/appcompat-v7-21.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21/appcompat-v7-21.jar
Required by:
myappname:app:unspecified
one thing that surprised me is that I opened this link:
https://jcenter.bintray.com/com/android/support
but this link is incorrect!
what is the cause of this error?
I have android support library installed:
Go to the SDK Manager and install "Extras|Android Support Repository"

Error:Failed to find: com.google.protobuf:protobuf-java:2.5 in Android Studio imported project

I imported an existing Android project in the Android Studio but it does not build because of this :
Error:A problem occurred configuring project ':appName'.
> A problem occurred configuring project ':myTracksLib'.
> Could not resolve all dependencies for configuration ':myTracksLib:_debugCompile'.
> Could not find com.google.protobuf:protobuf-java:2.5.
Searched in the following locations:
https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.pom
https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.jar
file:/Users/name/Library/Android/sdk/extras/android/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.pom
file:/Users/name/Library/Android/sdk/extras/android/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.jar
file:/Users/name/Library/Android/sdk/extras/google/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.pom
file:/Users/name/Library/Android/sdk/extras/google/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.jar
Required by:
AppName:myTracksLib:unspecified
How can I solve that? Project builds in Eclipse so I do not know why this is happening.
I have seen this but I do not know how it related to Android Studio or not.
According to the search function of Maven Central:
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.protobuf%22%20AND%20a%3A%22protobuf-java%22
There's a 2.5.0 version, not 2.5. Try changing the version in your build script to 2.5.0.

Errors after creating a new project in Android Studio

Just now I updated my android studio from build 130.737825 to build 130.878379. When I create a project for the first time, I am getting following error.
Gradle: A problem occurred configuring project ':MyApplicationadfaldf'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':MyApplicationadfaldf:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:+.
Required by:
MyApplicationadfaldfProject:MyApplicationadfaldf:unspecified
What is the reason?
For others, who may be facing the same problem,
Go to Tools-> Android-> SDK Manager, and update all repositories. Now, everything will work properly.
Same issue in my project was fixed with this:
In Android Studio:
-> Go to File menu -> Settings -> Gradle ->
Now in Gradle Settings just check Use Auto-Import Now update Maven will be updated in Android Studio and this error should be gone.
http://tools.android.com/knownissues#TOC-Bundled-Maven-Repository
you need to install "android support repository"

Categories

Resources