Execution failed for ':app:ndkBuild'. Process 'command ndk-build.cmd' finished with non-zero exit value 2

后端 未结 2 769
梦如初夏
梦如初夏 2021-01-14 02:41

I have been stuck on this problem for 2 days and have tried out all possible solutions given on stackoverflow. Below is my build.gradle file:

apply plugin: \         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 03:38

    I went to

    C:\Users\Dev\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd
    

    directory and for the ndk-build.cmd i press

    Right-Click> Edit and change the cmd file from:

    @echo off
    %~dp0\build\ndk-build.cmd %*
    

    to

    @echo off
    THAT works for me
    

提交回复
热议问题