首页 > 解决方案 > 无法确定任务 ':app:preReleaseBuild' 的依赖关系

问题描述

我正在尝试将项目创建到 .apk 文件,但是当我输入 - ./gradlew bundleRelease 时出现此错误:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preReleaseBuild'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not resolve project :react-native-gesture-handler.
     Required by:
         project :app
      > Unable to find a matching configuration of project :react-native-gesture-handler: None of the consumable configurations have attributes.

我知道有一些像我一样的问题,但没有一个是完全相同的。如果已经存在解决方案,我很抱歉,但我没有找到。

标签: androidreact-nativevisual-studio-code

解决方案


您可能没有链接库 react-native-gesture-handler


推荐阅读