Estoy enfrentando un problema cuando estoy usando Gradle para generar mi aplicación de Android en Android Studio, recibo ese error, el error estaba sincronizado, luego intenté sincronizar y el AVD estaba funcionando, y la sincronización funcionó, pero ahora , tal vez me enfrento al mismo problema al usar Gradle para la salida, y creo que esto podría ayudar, que restablecí mi computadora portátil, así que todo se eliminó, y reinstalé Android Studio y todo, y esta es mi primera prueba, y ejecuto para Gradle también...
Aquí está mi build.gradle que obtengo
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = "1.5.10" repositories { google() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath 'com.android.tools.build:gradle:7.0.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5" classpath "org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.10" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() } } task clean(type: Delete) { delete rootProject.buildDir }Aquí está mi error
Could not determine the dependencies of task ':app:kaptDebugKotlin'. > Could not resolve all files for configuration ':app:kotlinKaptWorkerDependencies'. > Could not find org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.10. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.5.10/kotlin-annotation-processing-gradle-1.5.10.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration. Required by: project :app Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.htmlQuien pudiera ayudar, eso se lo agradeceria y seria feliz, gracias...
Agregar repositorio central de Maven
repositories { mavenCentral() } Posible causa de error :
Parece que actualmente Android Studio está intentando descargar la biblioteca ( org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.10 ) desde la ubicación "https://dl.google.com/dl/android/maven2" , pero por alguna razón, no pudo encontrar el archivo pom como se explica en el error.
Si el artefacto que intenta recuperar se puede encontrar en el repositorio pero sin metadatos en formato 'Maven POM', debe ajustar los 'metadataSources { ... }' de la declaración del repositorio.