【发布时间】:2017-08-13 06:43:17
【问题描述】:
我在我的项目中导入了一个名为“wear”的库模块,在构建时,我得到了这个:
Error : A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApk'.
Project :app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :wear.
这是什么意思?我怎样才能摆脱它?
【问题讨论】:
-
你能解决这个问题吗?我在通过 Android Studio 为 React Native 构建时遇到了同样的问题。
-
您是否使用复合构建?当我使用
--include-build构建时出现此错误,但没有它我还有另一个错误:Could not find libmylib.aar (com.package:libmylib:1.0-BETA-SNAPSHOT). Searched in the following locations:,即使它搜索的“位置”是正确的链接。就我而言,我在 gradle 3.4.1 中遇到了这些错误,但在 gradle 2.14.1 中没有(即后者工作正常)。 -
@rarahat02,您找到解决此问题的方法了吗?我也面临同样的问题。如果是这样,请提出解决问题的可能方法。
-
还没有@SenthilMg
-
此问题的原因之一是重命名模块的目录名称。所以不要更改模块的文件夹
标签: android android-studio android-gradle-plugin