Flutter failed for task app:mergeDebugNativeLibs and app:mergeDebugJavaResource

后端 未结 4 1966
再見小時候
再見小時候 2021-01-21 16:35

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task \':app:mergeDebugNativeLibs\'.
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 17:16

    I had the same issue after setting up my flutter project to run on iOS. When I tried to run it back on Android, this error was thrown.

    This worked for me (on Windows):

    1. Close your project and close your code editor

    2. Open Task Manager

    3. Finish all vscode-related tasks you see (or related to the IDE you are using)

    4. Finish all Java-related tasks, inclidung OpenJDK Platform binary (there are usually two of these; finish both)

    5. Go to your project's root folder and delete the build folder

    6. Open your project again and run

    Good luck!

提交回复
热议问题