Failed to resolve: com.google.firebase:firebase-analytics:9.0.0 [duplicate] - android

This question already has answers here:
Failed to resolve: com.google.firebase:firebase-core:9.0.0
(13 answers)
Closed 6 years ago.
According to Google I/O 2016,I know the "Firebase",it is very nice for me,but I can not use it because this error.I have get a solution that update "Google play services" to 30,but no update tips.

You have to update your SDK Manager
Also you have to use
classpath 'com.google.gms:google-services:3.0.0'
in your buildscript block and this version has to work with Google Play services 9.0 (+).

try this
com.google.firebase:firebase-core:9.0.0
instead of
com.google.firebase:firebase-analytics:9.0.0

Related

Problem Android Studio - failed to resolve com.android.support appcompat-v7 29 [duplicate]

This question already has answers here:
Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
(6 answers)
Closed 3 years ago.
I'm trying to start a course with Android Studio 2.2.1, but when I create a new project I come upon the error message:
failed to resolve com.android.support appcompat-v7 29
Also my Mainactivity.java gives me the error:
Method does not override method from superclass.
I've tried to add the Maven URL, but with no luck.
When I try to rebuild the project I get:
Error:A problem occurred configuring project ':app'. Could not resolve
all dependencies for configuration ':app:_debugApkCopy'. Could not
find any version that matches com.android.support:appcompat-v7:29.+.
Versions that do not match:
26.0.0-alpha1
25.3.1
25.3.0
25.2.0
25.1.1
+ 31 more Required by: DemoAppTwo:app:unspecified
Does anybody know a solution for this, so that I can start learning to code in android please?
Thanks in advance!
Kind regards,
KevinDP
That is not a version of the support library that exists - the last version was 28 (and it has since been replaced).
You should download the latest version of Android Studio (currently 3.5.3) from the Android Developers website and start again with that. It will create the new project for you with the correct dependencies.

failed to resolve com.google.android.gms:play-services-add:11.6.0 [duplicate]

This question already has answers here:
Failed to resolve com.google.android.gms play-services-auth:11.4.0
(13 answers)
Failed to resolve: com.android.support:appcompat-v7:26.0.0
(14 answers)
Failed to resolve: com.android.support:cardview-v7:26.0.0 android
(26 answers)
Closed 5 years ago.
I'm trying to integrate Mobile Ads SDK on my personal app. however, I'm having failed to resolve com.google.android.gms:play-services-add:11.6.0 error when syncing module:app Gradle. Please help me how to solve this issue.
Have you tried adding this to your build.gradle options?
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
Look at SDK Manager > SDK Tools if Google Play Services are installed in the newest version. If they're installed, try
compile 'com.google.android.gms:play-services-ads:11.+'
instead of
compile 'com.google.android.gms:play-services-ads:11.6.0'

Gradle doesnt support newest libraries [duplicate]

This question already has answers here:
Failed to resolve: com.android.support:cardview-v7:26.0.0 android
(26 answers)
Failed to resolve com.google.android.gms play-services-auth:11.4.0
(13 answers)
Failed to resolve: com.google.firebase:firebase-core:11.2.0
(6 answers)
Closed 5 years ago.
I have updated parts of the Android sdk and now I can use newer versions of my libraries but the gradle file doesn't accept them. Can you help me pls?
That one is the only projects where it get an error, that's why I think it gets the error 'cause of a local project file.
I got a failed to resolve error at each library
I use some of Google firebase (11.2.0) ;support:appcompat-v7(26.0.2); support:design (26.0.2)
Android studio says me that are the newest versions for my project.
Play services and Firebase dependencies are now available via maven.google.com with the release of version 11.2.0 of Google Play services and Firebase.
Add maven { url "https://maven.google.com" } to your root level build.gradle file
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
For more information please check official doc

Failed to resolve: com.android.support:support-v4:26.0.0 for wear [duplicate]

This question already has answers here:
Failed to resolve: com.android.support:cardview-v7:26.0.0 android
(26 answers)
Closed 5 years ago.
I have installed new Android Studio in Ubuntu, and I keep on getting this error:
Screen Shot of the error
Add compile 'com.android.support:support-v4:26.0.0' or compile 'com.android.support:support-v4:26.+" in your gradle then sync it.
Reference: "Failed to resolve: com.android.support:support-v4:26.0.0" and other similar errors on Gradle sync

Android Studio, Gradle Update error [duplicate]

This question already has answers here:
Android-Studio upgraded from 0.1.9 to 0.2.0 causing gradle build errors now
(7 answers)
Closed 9 years ago.
I recently updated Android Studio to version 0.2, and now when I build my code, I get this error, Please tell me how to overcome this.
Gradle 'NewProject' project refresh failed:
Project is using an old version of the Android Gradle plug-in. The
minimum supported version is 0.5.0. Please update the version of
the dependency 'com.android.tools.build:gradle' in your build.gradle
files. Search in build.gradle files (show balloon)
Its a reported issue in Android Studio Build #AI-130.737825, built on July 11, 2013. Luckily, there is a workaround that you can do to fix this import issue.
Externally edit the project's build.gradle file, changing 'com.android.tools.build:gradle:0.4.2' to 'com.android.tools.build:gradle:0.5.+'
Here is the link to the issue
Go to your
build.gradle
file and replace the string
'com.android.tools.build:gradle: (what you have here)'
with
'com.android.tools.build:gradle:0.5'

Categories

Resources