【问题标题】:Failed to capture snapshot of input files for task ':app:transformClassesWithDexBuilderForDebug' property '$1' during up-to-date check.在最新检查期间无法捕获任务“:app:transformClassesWithDexBuilderForDebug”属性“$1”的输入文件快照。
【发布时间】:2018-11-01 09:49:46
【问题描述】:

我无法运行我的 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'.

【问题讨论】:

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


    【解决方案1】:

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

    删除后运行文件

    ./gradlew assembleRelease 
    

    【讨论】:

    • 从缓存中删除 modules_2 有效,感谢您的想法
    猜你喜欢
    • 2018-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-09
    • 2019-06-09
    • 1970-01-01
    • 2019-06-04
    相关资源
    最近更新 更多