首页 文章

反应原生错误,任务执行失败':app:processDebugResources'

提问于
浏览
0

任何想法这个错误意味着什么?

当我尝试运行时, npm run playground-android ,我收到错误 .

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugResources'. java.io.IOException: Could not delete path 'C:\sites\ReactMatt\lower-your-drinking\android\app\build\generated\source\r\debug\org\webkit'.

有任何想法吗?

4 回答

  • 0

    我有一个类似的问题 . 以下是我修复它的方法 .

    cd android //Navigate into the android folder from the root directory
    gradlew clean // Run this
    

    我希望它有所帮助

  • 0

    尝试通过CLI构建时关闭Android Studio

  • 3

    在我解决的Windows上

    1. cd android
    2. ./gradlew clean
    
  • 0

    我有同样的问题,但gradlew clean没有解决问题,直到我从我的项目中删除android和ios文件夹,然后使用这些命令;

    • react-native eject

    • react-native链接

    • react-native run-android

    祝好运 .

相关问题