NDK没有在Android的工作室配置问题 [英] NDK is not configured issue in android studio
问题描述
我的应用程序已成功建立在Eclipse的,但不能建立在Android工作室。
它返回ÇNDK错误$ C $未配置。
然后,我已经添加了 NDK
路径 build.gradle
那么它显示了以下错误:
信息:摇篮任务[:纳米:assembleDebug]
警告[项目:纳米]当前NDK支持德precated。替代将在未来中提供。
:纳米:preBuild UP-TO-DATE
:纳米:preDebugBuild UP-TO-DATE
:纳米:compileDebugNdk
make.exe:***没有规则,使目标`C:\Users\admin\nano\nano\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/la_audio_processing_android/C_\Users\admin\nano\nano\src\main\jni',需要`C:\Users\admin\nano\nano\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/la_audio_processing_android/C_\Users\admin\nano\nano\src\main\jni\LA_PostProcessing.o'.停止。
错误:执行失败的任务:纳米:compileDebugNdk。
> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'C:\用户\管理\应用程序数据\本地\的Android \ NDK \ NDK,build.cmd''完成非零值2
信息:构建失败
信息:总时间:3.449秒
资料:1错误
信息:0警告
信息:查看控制台完成输出
这是在Windows环境下所面临的Android Studio用户的问题。 首先对于NDK没有配置问题
转到local.properties文件,并给NDK路径... 为前:
#Wed 03月18日14点10分33秒北京时间2015年
sdk.dir = C \:\\ \\用户管理\\ \\ AppData的地方\\的Android \\ sdk1
ndk.dir = C \:\\ \\用户管理\\ \\ AppData的地方\\的Android NDK \\
那么对于接下来的问题或错误...
转到JNI文件夹和创建任何名称的空C文件... 然后,您的问题将得到解决......
有关这方面的一些快速链接 http://ph0b.com/android-studio-gradle-and-ndk-集成/ 和 的https://$c$c.google.com/p /安卓/问题/详细信息?ID = 66937
My Application is built successfully on Eclipse but fails to Build on android studio.
It returns the error code Ndk is not Configured.
Then I've added ndk
path to build.gradle
then its showing the following error:
Information:Gradle tasks [:nano:assembleDebug]
WARNING [Project: :nano] Current NDK support is deprecated. Alternative will be provided in the future.
:nano:preBuild UP-TO-DATE
:nano:preDebugBuild UP-TO-DATE
:nano:compileDebugNdk
make.exe: *** No rule to make target `C:\Users\admin\nano\nano\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/la_audio_processing_android/C_\Users\admin\nano\nano\src\main\jni', needed by `C:\Users\admin\nano\nano\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/la_audio_processing_android/C_\Users\admin\nano\nano\src\main\jni\LA_PostProcessing.o'. Stop.
Error:Execution failed for task ':nano:compileDebugNdk'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\admin\AppData\Local\Android\ndk\ndk-build.cmd'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 3.449 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
This is the problem faced by Android studio users in Windows environment. First for NDK not Configured problem
Go to local.properties file and give ndk path... for ex :
#Wed Mar 18 14:10:33 IST 2015
sdk.dir=C\:\\Users\\admin\\AppData\\Local\\Android\\sdk1
ndk.dir=C\:\\Users\\admin\\AppData\\Local\\Android\\ndk
Then for the Next Problem or Error...
Goto JNI Folder and create an empty c file by any name... Then your problem will be solved...
Some Quick links about this are http://ph0b.com/android-studio-gradle-and-ndk-integration/ And https://code.google.com/p/android/issues/detail?id=66937
这篇关于NDK没有在Android的工作室配置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!