Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
Plugin [id: 'org.jetbrains.kotlin.android', version: '1.7.21', apply: false] was not found in any of the following sources:
build.gradle exception
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 months ago.
This post was edited and submitted for review 2 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
When I run flutter run I get this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':assets_audio_player'.
> Could not resolve all artifacts for configuration ':assets_audio_player:classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20.
gradle-wrapper.properties:
distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip
Update
app/build.gradle:
Could you try to update the Gradle Wrapper to 7.6 and Kotlin to 1.7.10 (or 1.7.20) ?
https://docs.gradle.org/current/userguide/compatibility.html
Also
classpath 'com.android.tools.build:gradle:3.5.4'
is pretty old
try
classpath 'com.android.tools.build:gradle:7.1.2'
You need to ensure that the Gradle Wrapper, Kotlin Version and all those plugins you are using or adding to your classpath, are compatible to each other otherwise you might get weird erros.
Have you tried upgrading your kotlin version?
ext.kotlin_version = '1.7.20'
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'
This question already has answers here:
Gradle Sync failed could not find constraint-layout:1.0.0-alpha2
(23 answers)
Closed 5 years ago.
when i want to add this line in build.gradle,throws an error.
Error:(26, 13)
Failed to resolve: com.android.support:constraint:constraint-layout
please help me to resolve that.
Please use
compile 'com.android.support.constraint:constraint-layout:1.0.2'
This question already has answers here:
TransformException duplicate entry for common.annotations.Beta
(3 answers)
Closed 6 years ago.
While running my android application in android studio, I got the following error:
Error: Execution failed for task':App:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException:
duplicate entry: android/support/annotation/LayoutRes.class
Where does that error come from / how to resolve that issue?
You have added com.android.support:support-annotations: two times. Surely, not directly, but one of your dependencies depends on it. Run from console (inside project folder): gradlew app:dependencies and see what depends on support annotations library.
Then, exclude dependencies
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