Build command failed.
Error while executing process D:\ProgramData\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build D:\Download\AndroidStudioProjects\MyFirstSo\app\.externalNativeBuild\cmake\debug\x86_64 --target MySo}
Building CXX object CMakeFiles/MySo.dir/src/main/jni/mySo.cpp.o
FAILED: D:\ProgramData\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe--target=x86_64-none-linux-android21 --gcc-toolchain=D:/ProgramData/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/ProgramData/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot-DMySo_EXPORTS-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++-O0 -fno-limit-debug-info-fPIC -MD -MT CMakeFiles/MySo.dir/src/main/jni/mySo.cpp.o -MF CMakeFiles\MySo.dir\src\main\jni\mySo.cpp.o.d -o CMakeFiles/MySo.dir/src/main/jni/mySo.cpp.o -c D:\Download\AndroidStudioProjects\MyFirstSo\app\src\main\jni\mySo.cpp
D:\Download\AndroidStudioProjects\MyFirstSo\app\src\main\jni\mySo.cpp:4:10: fatal error: 'com.example.myfirstso.soTest.h' file not found
#include "com.example.myfirstso.soTest.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
704357815 发表于 2019-3-25 16:58
第4行改成引号内内容改成,com_example_myfirstso_soTest.h
成功运行,但为什么你多了一个intermediates文件夹,我这只生成了“.externalNativeBuild”
沙发 占位 不错{:1_937:}虽然看不懂 弱弱的问一下,这个有什么用? 学习了,多谢 学习,下载中 本帖最后由 ShingXJ 于 2019-3-25 16:42 编辑
mark 应该是Android studio 吧
页:
[1]
2