我在运行我的应用程序时得到了这个错误。
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.android.support.constraint:constraint-layout:1.1.3.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.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
> Could not find com.android.support:appcompat-v7:25.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.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
> Could not find com.android.support:support-v4:25.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/support-v4/25.3.1/support-v4-25.3.1.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
> Could not find com.android.support:design:25.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/design/25.3.1/design-25.3.1.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.html
我已经有了版本号30上的compileSdkVersion和targetSdkVersion。我添加到build.repositories
jcenter()
和allprojects.repositories
jcenter()
,然后构建react-native应用程序,它运行良好。
我的建筑。Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "20.1.5948944"
}
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.1")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven {
// All of the Detox artifacts are provided via the npm module
url("$rootDir/../../../node_modules/detox/Detox-android")
}
}
}
我在运行flutter应用程序时遇到此错误。 出了什么问题:任务': app: eck DebugAarMetdata'执行失败。 执行 com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction 时失败 依赖项的 AAR 元数据 (META-INF/com/android/build/gradle/aar-metadata
我刚刚更新了我的cordova android到7.1.0,以支持Android27 sdk,以解决插件不能与SDK26一起工作的问题。 我尝试更改GradleBuilder.js文件中的gradle分发url,但没有成功。 编辑2:我想解决这个问题的firebase插件似乎是问题的一部分。移除:cordova-plugin-firebase允许应用程序的构建没有问题。似乎在添加插件后,我不能简单
任务:应用程序:MiniFyReleaseWithr8失败 失败:生成失败,出现异常。 distributionurl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip
我正在尝试生成签名的apk,但不幸的是收到以下错误。 使用--debug完成日志
每当我运行'react-native run-android'时,我会得到99%的错误消息: 任务“:app:TransformNativeLibsWithMergeJnilibsForDebug”执行失败。 无法解析配置“:app:DebugrunTimeClasspath”的所有文件。无法将项目“imagePipeline-base.aar(com.facebook.fresco:imageP
Build.Gradle(模块:应用程序) 生成错误输出失败:生成失败,出现异常。 > 错误:任务“:app:TransformClassesWithMultiDexListForFreeDebug”执行失败。 com.android.build.api.Transform.TransformException:生成主dex列表时出错。 gradle Build-S 例外情况是: GitHub项目