当前位置: 首页 > 知识库问答 >
问题:

任务“:app:TransformNativeLibsWithMergeJnilibsForDebug”执行失败

有宏邈
2023-03-14

每当我运行'react-native run-android'时,我会得到99%的错误消息:

任务“:app:TransformNativeLibsWithMergeJnilibsForDebug”执行失败。

无法解析配置“:app:DebugrunTimeClasspath”的所有文件。无法将项目“imagePipeline-base.aar(com.facebook.fresco:imagePipeline-base:2.0.0)”转换为匹配属性{artifactType=Android-java-res}。AARTransform:C:\users\ronsi.gradle\caches\transforms-2\files-2.1\36b5e92c216129ce5187eea1bb53cf04执行失败。无法分析结果路径字符串:无法将项目“soloader.aar(com.facebook.soloader:soloader:0.6.0)”转换为匹配属性{artifacttype=android-java-res}.AARTransform:C:\users\ronsi.gradle\caches\transforms-2\files-2.1\6E75901105F09A338E73B93BF40FCAE8执行失败。无法分析结果路径字符串:

生成在11s中失败

at checkExecSyncError (child_process.js:623:11)
at execFileSync (child_process.js:641:15)
at runOnAllDevices (C:\Users\ronsi\Documents\repos\bahad\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\ronsi\Documents\repos\bahad\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at C:\Users\ronsi\Documents\repos\bahad\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async Command.handleAction (C:\Users\ronsi\Documents\repos\bahad\node_modules\@react-native-community\cli\build\cliEntry.js:160:7)

共有1个答案

滑畅
2023-03-14

通过删除文件夹解决:C:\users\username.gradle\caches\transforms-2

 类似资料: