我迁移到Android studio 3.0。因此,项目无法编译名为":animator“的模块,并显示以下错误:
Error:Unable to resolve dependency for
':app@dexOptions/compileClasspath': Could not resolve project
:animators. <a
href="openFile:/home/mobilepowered/MobilePowered/MyInnovalee/trunk17-10-2017/app/build.gradle">O
编辑:似乎是谷歌方面的一个bug。Bug报告在这里:
自从Google发布了新的更改()之后,我不得不更新google的服务。一旦我做到了,我就得到了这个gradle错误:
More than one variant of project :myModule matches the consumer attributes:
- Configuration ':myModule:debugApiElements' variant android-aidl:
- Found artifactType 'android-aidl' but wasn&
我正在尝试将OpenCV包含在我的Android项目中,逐步使用指南。但是,在将OpenCV添加为模块依赖项(指南中的步骤4)之后,Gradle项目同步将失败,出现以下错误:
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :openCVLibrary410.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@d
我有一个主要项目和第二个项目(模块)。
将模块项目作为模块依赖项导入app项目并尝试同步所有内容后,将得到以下错误:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :module.
Could not resolve project :module.
Required by: project :app
Unable to find a matching configuration of project :module:
- Configurat
我正在尝试编写一个gradle任务(下面的代码),它在一个多项目构建中聚合来自ResolvedArtifact对象的信息。然而,当我使用Gradle4.8.1在一个示例安卓项目()上运行任务时,我得到了以下错误:
07:29 $ gradle clean resolveArtifacts
> Task :app:resolveArtifacts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:resolveArtifacts
当我迁移到AndroidStudio3.0时,我得到了下面的跟踪
* What went wrong:
Could not determine the dependencies of task ':celltower:compileExternalNativeBuildJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':celltower:externalNativeBuildCompileClasspath'.
> Could not re
当我将Android项目中的Gradle升级到version 4时,我们得到了这个错误,无法修复它。
错误详细信息:
More than one variant of project :volley matches the consumer attributes:
- Configuration ':volley:debugApiElements' variant android-aidl:
- Found artifactType 'android-aidl' but wasn't required.
- Required
我有一个多模块的项目。从其中一个模块,我需要引用来自其他模块的测试类。我尝试这样配置: // core project
val testJar by tasks.registering(Jar::class) {
archiveClassifier.set("tests")
from(project.the<SourceSetContainer>()["test"].output)
}
val testArtifact by configurations.creating
artifacts.add(testArtifact.nam
我为android UI测试创建了仅限测试的模块。它在AS2.3下工作,但当我升级到AS3.0时,我看到了以下问题:
>Cannot choose between the following:
configurations of project :abcMobile:
- normalDebugApiElements
- xxxDebugApiElements
- yyyDebugApiElements
- zzzDebugApiElements
All of them match the consumer attributes:
- Configuration 'no
起初,一切正常,我试图更新构建:gradle和SDK版本。
在构建该项目时,我将得到以下信息
Gradle sync failed: More than one variant of project :react-native-fetch-blob matches the consumer attributes:
- Configuration ':react-native-fetch-blob:debugApiElements' variant android-aidl:
- Found artifactType 'an
我正试图准备一个分阶段发布版本,但是我的构建失败了。它给了我一个巨大的错误列表。我已经修改了我的build.gradle以添加一个暂存环境。我不知道为什么会发生这种情况,因为我的调试和发布构建工作正常。
我使用yarn android --variant=stagingrelease生成构建并在我的实体android设备上运行。使用React-Native: 0.61.5。
中的一些错误如下所示:
FAILURE: Build failed with an exception.
* What went wrong: Could not determine the dependencies o