Report an error in Android Studio?
pzhangleo opened this issue · comments
Execution failed for task ':renderscript:compileArmDebugNdk'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Dev\android-ndk\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\build\ndk\arm\debug\Android.mk APP_PLATFORM=android-19 NDK_OUT=D:\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\build\ndk\arm\debug\obj NDK_LIBS_OUT=D:\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\build\ndk\arm\debug\lib APP_ABI=armeabi-v7a
Error Code:
2
Output:
make.exe: *** No rule to make targetD:\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\build\ndk\arm\debug\obj/local/armeabi-v7a/objs/renderscript/D_\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\src\main\jni', needed by
D:\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\build\ndk\arm\debug\obj/local/armeabi-v7a/objs/renderscript/D_\AndroidStudio\AndroidDemo\RenderScriptPlayground-master\renderscript\src\main\jni\processor_type.o'. Stop.
Gradle 1.10
I will check it
Did you set proper NDK_PROJECT_PATH variable ? Cause from logs it looks like NDK_PROJECT_PATH is null. It should point to
path/to/RenderScriptPlayground/renderscript/src/main/jni
Thank you. That is the problem. And I build the project in eclipse with adt.
Where is this set?
Hi,
You need to set environmental variable NDK_PROJECT_PATH. It should point to
../path/to/RenderScriptPlayground/renderscript/src/main/jni
I don't know which system do you use but answer how to set environmental variable can be easily found in Google.
i fixed the problem by adding an empty file, get detail information goto
http://ph0b.com/android-studio-gradle-and-ndk-integration/
make.exe: *** No rule to make target ...\src\main\jni
This may come from a current NDK bug on Windows, when there is only one source file to compile. You only need to add one empty source to make it work again.
Cool, thanks @seiyaa for a link
Hey Seiyaa,
thanks for the help and also for sending the link .
Regards ,
Amit Singh Tomar
On Wed, Nov 12, 2014 at 3:25 PM, Michal Moczulski notifications@github.com
wrote:
Cool, thanks @seiyaa https://github.com/seiyaa for link
—
Reply to this email directly or view it on GitHub
#1 (comment)
.