com.android.ide.common.process.ProcessException: Error while executing process C:\Users\Administr...

今天导入项目的时候遇到这么一个问题,是高版本的NDK带来的问题,我使用的是17版本,会报一个这种错误,所以献给那些以后可能遇到这个问题的你们。(解决方法就是去下载10版本的NDK)

~~~

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':mDemoSDK:compileDebugNdk'.

> com.android.ide.common.process.ProcessException: Error while executing process C:\Users\Administrator\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\GitCode\my-opreate-sdk\mDemoSDK\build\intermediates\ndk\debug\Android.mk APP_PLATFORM=android-21 NDK_OUT=E:\GitCode\my-opreate-sdk\mDemoSDK\build\intermediates\ndk\debug\obj NDK_LIBS_OUT=E:\GitCode\my-opreate-sdk\mDemoSDK\build\intermediates\ndk\debug\lib APP_ABI=armeabi-v7a,armeabi,x86}

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

~~~

最后我想对那些臭鱼烂虾们说几句,如果别人已经有分享过的了,你自知你的只是抄袭他的博客的话,就没有必要再浪费时间去抄袭了,因为这样会让别人搜出来很多同样的博文,很浪费开发者的时间。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容