Error while updating my osmdroid package - android

I have been using osmdroid library with android-studio for a while. I recently saw here that version 5.4.1 has been released and therefore changed my gradle dependency to
compile 'org.osmdroid:osmdroid-android:5.4.1:release#aar'
But it gives me an error saying
Error:A problem occurred configuring project ':app'.
Could not find osmdroid-android.aar (org.osmdroid:osmdroid-android:5.4.1).
Searched in the following locations:
https://repo1.maven.org/maven2/org/osmdroid/osmdroid-android/5.4.1/osmdroid-android-5.4.1.aar

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 gradle error during generateDebugSource step

I'm having some trouble with Android Studio. During the gradle build I get an error such as:
Error:A problem occurred configuring project ':app'.
> Artifact 'support-annotations.jar (com.android.support:support-annotations:23.0.0)' not found.
Searched in the following locations:
file:/C:/Users/MyPc/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/23.0.0/support-annotations-23.0.0.jar
I developed my project in compliance with API 22. I have installed API 23 and my project gave some errors. Thus to solve this issue I deleted all things related to API 23. During deletion this file must have deleted. How can this problem be solved?

IN android studio i try to run simple hello world program

Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.android.support:appcompat-v7:22.1.0.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/22.1.0/appcompat-v7-22.1.0.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/22.1.0/appcompat-v7-22.1.0.jar
file:/C:/Users/sivaram/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.1.0/appcompat-v7-22.1.0.pom
file:/C:/Users/sivaram/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.1.0/appcompat-v7-22.1.0.jar
file:/C:/Users/sivaram/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.1.0/appcompat-v7-22.1.0.pom
file:/C:/Users/sivaram/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.1.0/appcompat-v7-22.1.0.jar
Required by:
Firstone:app:unspecified
Make sure you've already download the android studio sdk, available here:
https://developer.android.com/sdk/installing/index.html
If you already download try to install in the SDK manager the support library.
Hope it help you.

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.

intellij new Android Gradle Project

I have the latest edition of Intellij.
After creating a blank Gradle Android Project I get the following error message when attempting to build the project:
Error:Gradle: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any version that matches com.android.support:appcompat-v7:19.+.
Required by:
test6:app:unspecified
How can I fix this?

Categories

Resources