在最新检查期间,无法捕获任务':app:transformClassesWithDexBuilderForDebug'属性'$ 1'的输入文件的快照。

时间:2018-11-01 09:49:46

标签: android react-native gradle android-gradle react-native-android

我无法运行我的React Native项目,它显示以下错误

    Failed to capture snapshot of input files for task ':app:transformClassesWithDexBuilderForDebug' property '$1' during up-to-date check.
    Failed to create MD5 hash for file 'C:\Users\ALL\.gradle\caches\modules-2\files-2.1\com.facebook.infer.annotation\infer-annotation\0.11.2\f514ff4ca022a579d9cf7524846988b646ae4491\infer-annotation-0.11.2.jar'.

1 个答案:

答案 0 :(得分:1)

您可以尝试删除node_modules文件夹并重新运行npm install

OR

删除后运行文件

./gradlew assembleRelease