-
Notifications
You must be signed in to change notification settings - Fork 134
Error:executing external native build for ndkBuild E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk #47
Comments
I think error in file android.mk but I don't where error: Code file android.mk: include $(CLEAR_VARS) LOCAL_SRC_FILES := VbrTag.c include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) |
have you fixed this error?? |
Getting this same error |
Anyone please help me to resolve this issue. |
Hi, Thanks. |
I have also facing the same error. Anyone has solved this error? |
Hi, |
@svvaez how did you do it ? explain ! |
@svvaez can u explain how it resolved |
I think the key might be your AndroidSDK or your project's path. There might be a whitespace in the above paths. My first AndroidSDK's path was |
@svvaez Not sure what happened with your workspace, but that surely was a different error that you had solved. I was able to use the NDK version I needed for my project on Ubuntu by simply setting the variable ndk.dir in the local.properties in my android studio project. That didn't happen on Windows. Turns out OpenFrameworks, which is what I was trying to use needs ndk r15c. Gstreamer, though, has its own ndk which I read somewhere is ndk r17c. And Android Studio only gave me the option to download ndk 19. Whenever I clicked to use an existing downloaded ndk (instead of downloading the latest) it would accept the link I provided, but throw the same error "Error while executing" [...] Just spent quite some days to figure this one out. Finally got openframeworks compiling to my phone at this very minute. |
111 |
I have the same problem.And my path doesn't contain any space.I think I know the reason, but I don't know how to solve it. I imported a project built with gradle plugin 4.0.0-alpha9, and I sync it with gradle plugin version 4.0.1, so it had error like above, but if I change the gradle plugin version to 4.0.0-alpha9, it also had error that the version is uncompatible. What the F*****! |
Hi @JoneJay how did you solve it? |
recebo este erro :\projeto\mod>git submodule init |
I had this issue and solved it. The problem is about your path to the Android.mk file. If you have path contains space like this
You can see that there is a space between "Android" and "Project". |
Help me, I try build but don't and error:
External Native Build Issues
Build command failed.
Error while executing 'C:\Users\Akashjpro\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDEBUG=0 APP_PLATFORM=android-16 NDK_OUT=E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=E:\A-Android\yt-watchme-master\app\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}
Android NDK: WARNING:E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk:ffmpeg: non-system libraries in linker flags: E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavformat.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavcodec.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavfilter.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavresample.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libswscale.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavutil.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libx264.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libpostproc.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libswresample.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libfdk-aac.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
md "E:\A-Android\yt-watchme-master\app\build\intermediates\ndkBuild\release\obj\local\armeabi\objs\ffmpeg" >NUL 2>NUL || rem
C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../prebuilt/windows-x86_64/bin/echo.exe [armeabi] "Compile thumb ": "ffmpeg <= ffmpeg-jni.c"
C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/release/obj/local/armeabi/objs/ffmpeg/ffmpeg-jni.o.d -gcc-toolchain C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -fno-integrated-as -g -target armv5te-none-linux-androideabi -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -DNDEBUG -IE:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/include -IE:/A-Android/yt-watchme-master/app/src/main/jni -DANDROID -DHAVE_AV_CONFIG_H -std=c99 -D__STDC_CONSTANT_MACROS -DSTDC_HEADERS -Wa,--noexecstack -Wformat -Werror=format-security -isystem C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../platforms/android-16/arch-arm/usr/include -c E:/A-Android/yt-watchme-master/app/src/main/jni/ffmpeg-jni.c -o E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/release/obj/local/armeabi/objs/ffmpeg/ffmpeg-jni.o
md "E:\A-Android\yt-watchme-master\app\build\intermediates\ndkBuild\release\obj\local\armeabi" >NUL 2>NUL || rem
process_begin: CreateProcess(NULL, "", ...) failed.
make: *** No rule to make target
E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lame/libmp3lame/VbrTag.c', needed by
E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/release/obj/local/armeabi/objs/lame/VbrTag.o'. Stop.Error:executing external native build for ndkBuild E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk
Build command failed.
Error while executing 'C:\Users\Akashjpro\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDEBUG=1 APP_PLATFORM=android-16 NDK_OUT=E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\A-Android\yt-watchme-master\app\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}
Android NDK: WARNING:E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk:ffmpeg: non-system libraries in linker flags: E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavformat.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavcodec.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavfilter.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavresample.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libswscale.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libavutil.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libx264.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libpostproc.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libswresample.a E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lib/libfdk-aac.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
md "E:\A-Android\yt-watchme-master\app\build\intermediates\ndkBuild\debug\obj\local\armeabi\objs\ffmpeg" >NUL 2>NUL || rem
C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../prebuilt/windows-x86_64/bin/echo.exe [armeabi] "Compile thumb ": "ffmpeg <= ffmpeg-jni.c"
C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs/ffmpeg/ffmpeg-jni.o.d -gcc-toolchain C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -fno-integrated-as -g -target armv5te-none-linux-androideabi -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -DNDEBUG -IE:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/include -IE:/A-Android/yt-watchme-master/app/src/main/jni -DANDROID -DHAVE_AV_CONFIG_H -std=c99 -D__STDC_CONSTANT_MACROS -DSTDC_HEADERS -Wa,--noexecstack -Wformat -Werror=format-security -isystem C:/Users/Akashjpro/AppData/Local/Android/sdk/ndk-bundle/build//../platforms/android-16/arch-arm/usr/include -c E:/A-Android/yt-watchme-master/app/src/main/jni/ffmpeg-jni.c -o E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs/ffmpeg/ffmpeg-jni.o
md "E:\A-Android\yt-watchme-master\app\build\intermediates\ndkBuild\debug\obj\local\armeabi" >NUL 2>NUL || rem
process_begin: CreateProcess(NULL, "", ...) failed.
make: *** No rule to make target
E:/A-Android/yt-watchme-master/app/src/main/jni/../third_party/lame/libmp3lame/VbrTag.c', needed by
E:/A-Android/yt-watchme-master/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs/lame/VbrTag.o'. Stop.Error:executing external native build for ndkBuild E:\A-Android\yt-watchme-master\app\src\main\jni\Android.mk
E:\A-Android\yt-watchme-master\app\build.gradle
Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
The text was updated successfully, but these errors were encountered: