How to resolve Android ndk build command faild?

后端 未结 2 1546
梦毁少年i
梦毁少年i 2020-12-20 05:11

I am developing simple ndk sample example using android ndk in android studio. While running my app studio shows below errors.

Build command failed.
Error wh         


        
相关标签:
2条回答
  • 2020-12-20 05:51

    NDK build fails miserably when the path to project files contains spaces. To fix your build, copy the project to path without spaces.

    0 讨论(0)
  • 2020-12-20 06:09

    After lot of trials and help from github google guy I am able to solve. To resolve problem I have follow below steps.

    1.go to project directory.

    2.deleted .gradle ,app/.externalNativeBuild and app/build.

    3.changed local.properties ndk path to external ndk-r16b.

    4.Run through Android studio.

    5.Finally apk is generate.

    0 讨论(0)
提交回复
热议问题