react-native - 无法解决配置':unimodules-react-native-adapter:debugCompileClasspath'的所有任务依赖项,

标签 react-native debugging dependencies

此构建中使用了不推荐使用的Gradle功能,使其与Gradle 5.0不兼容。
使用“ --warning-mode all”来显示各个弃用警告。
https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

失败:生成失败,发生异常。


什么地方出了错:
无法确定任务':unimodules-react-native-adapter:compileDebugAidl'的依赖项。


无法解决配置':unimodules-react-native-adapter:debugCompileClasspath'的所有任务依赖性。
无法解析androidx.core:core:1.0.0。
要求:
项目:unimodules-react-native-adapter
找不到满足版本限制的'androidx.core:core'版本:



  Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.facebook.react:react-native:0.61.5' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.vectordrawable:vectordrawable-animated:1.0.0' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.facebook.react:react-native:0.61.5' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.core:core:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.core:core:1.0.0'
           Constraint path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'androidx.core:core' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Constraint path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'androidx.core:core' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Constraint path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'androidx.core:core' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0



无法解析androidx.vectordrawable:vectordrawable:1.0.0。
要求:
项目:unimodules-react-native-adapter
找不到满足版本限制的'androidx.vectordrawable:vectordrawable'版本:


 Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.github.bumptech.glide:glide:4.9.0' --> 'androidx.vectordrawable:vectordrawable-animated:1.0.0' --> 'androidx.vectordrawable:vectordrawable:1.0.0'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.facebook.react:react-native:0.61.5' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1'
           Dependency path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'com.facebook.react:react-native:0.61.5' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable-animated:1.0.0' --> 'androidx.vectordrawable:vectordrawable:1.0.0'
           Constraint path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'androidx.vectordrawable:vectordrawable' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Constraint path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'androidx.vectordrawable:vectordrawable' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Constraint path 'org.unimodules:unimodules-react-native-adapter:4.0.0' --> 'androidx.vectordrawable:vectordrawable' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0


17秒钟内失败

at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (E:\A\gamma\reactapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

最佳答案

作为临时解决方案:


打开node_modules/unimodules-react-native-adapter/android/build.gradle
搜索compileOnly('com.facebook.react:react-native:+')
将其更改为implementation('com.facebook.react:react-native:+')

关于react-native - 无法解决配置':unimodules-react-native-adapter:debugCompileClasspath'的所有任务依赖项,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59088831/

相关文章:

javascript - 如何在异步函数中测试 jest.fn().mock.calls

javascript - 如何在 Protractor Cucumber 框架中使用断点进行调试

C:函数仅在第一次迭代中工作

C++ Rest SDK 卡萨布兰卡 Sigtrap

java依赖分析

java - 如何让eclipse使用maven下载的包?

react-native - 如何将调度函数传递给 Header 组件?

reactjs - React Native "GET/onchange HTTP/1.1"- - "-" "okhttp/3.6.0"React Native 更新后的日志

android - 如何在屏幕上按比例显示 4 个图像

go: 如何定义依赖关系?