[Android Studio] [NDK] Execution failed for task ': App:compiledebugndk '. Error Code:2

Source: Internet
Author: User

Execution failed for task ': App:compiledebugndk ' .> com.android.ide.common.internal.LoggedErrorException:Failed to Run Command: c:\users\sodinochen\appdata\local\android\ndk-r10b\ndk-build.cmd NDK_PROJECT_PATH=null APP_ Build_script=c:\users\sodinochen\androidstudioprojects\hellojni\app\build\intermediates\ndk\debug\android.mk App_platform=android-21 ndk_out=c:\users\sodinochen\androidstudioprojects\hellojni\app\build\intermediates\ndk\ Debug\obj Ndk_libs_out=c:\users\sodinochen\androidstudioprojects\hellojni\app\build\intermediates\ndk\debug\lib App_abi=allerror Code: 2output: make.exe: * * * No rule to make target ' C:\Users\sodinochen\ Androidstudioprojects\hellojni\app\build\intermediates\ndk\debug\obj/local/armeabi-v7a/objs/hellojni/c_\users\ Sodinochen\androidstudioprojects\hellojni\app\src\main\jni ', needed by ' C:\Users\sodinochen\AndroidstudioProjects \hellojni\app\build\intermediates\ndk\debug\obj/local/armeabi-v7a/objs/hellojni/c_\users\sodinochen\ AndroidstudioprojeCTS\HELLOJNI\APP\SRC\MAIN\JNI\MAIN.O '. Stop.

This error is baffling. A few times toss, find a video out of the probable cause and solution: The source see YouTube video 02:50 start: https://www.youtube.com/watch?v=okLKfxfbz40#t=362 under WindowsNDKa bug that occurs when only one file is compiled, and the workaround is to add an empty util.c file.


[Android Studio] [NDK] Execution failed for task ': App:compiledebugndk '. Error Code:2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.