此构建中使用了不推荐使用的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/