intellij new Android Gradle Project - android

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?

Related

showing this Gradle error when trying to run flutter project

I updated the Gradle from android studio. and when I try to run the project in vs code (Yes I already changed inside the build Gradle file too) showing this error.
What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:7.4.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
Required by:
project :
how can I fix this?
The gradle plugin has different versions in project level build.grade and gradle-wrapper.properties Here is the official documentation about this

android studio 3.0.1 and kotlin v1.2.10-release-Studio3.0-1 got issue

I am using android studio 3.0.1 and I was going to use Kotlin.
I wrote some simple code and when application runs the android studio shows me below error:
Error:Gradle:
A problem occurred configuring root project 'Firstapp1'.
Could not resolve all files for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.0.1.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom
Already seen doctype.
Gradle version: 4.1
Android plugin version : 3.0.1
Please help me to solve this problem!
Make sure the kotlin version used in gradle and the kotlin plugin version are the same like in the following snaps:
Version in gradle is 1.1.51
Version of the plugin installed is also 1.1.51
i solved that problem.thanks.i have a new problem...
Error:Gradle: A problem occurred configuring root project 'Firstapp1'.
Could not resolve all files for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.0.1.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom
Already seen doctype.
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect

Error while updating my osmdroid package

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

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.

Categories

Resources