写了一个游戏,真机运行 也没问题,但是最后 生成apk 失败,麻烦大神看下 怎么改, 下面是控制台输出日志
13:20:38 ---android build start---
13:20:40 Updated project.properties
13:20:40 Updated local.properties
13:20:40 Updated file D:\cocos_project\Parkour\frameworks\runtime-src\proj.android\proguard-project.txt
13:20:40 It seems that there are sub-projects. If you want to update them
13:20:40 please use the --subprojects parameter.
13:20:40 Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
13:20:41 make.exe: Entering directory `D:/cocos_project/Parkour/frameworks/runtime-src/proj.android'
13:20:41 Gdbserver : libs/armeabi/gdbserver
13:20:41 Gdbsetup : libs/armeabi/gdb.setup
13:20:41 make.exe: Leaving directory `D:/cocos_project/Parkour/frameworks/runtime-src/proj.android'
13:20:41 make.exe: *** No rule to make target `D:/android-ndk/sources/android/cpufeatures/cpu-features.c', needed by `obj/local/armeabi/objs-debug/cpufeatures/cpu-features.o'. Stop.
13:20:41 ---android build end---
13:20:41 Running command: compile
13:20:41 Building mode: debug
13:20:41 running: '"D:\android-sdk\tools\android" update project -t android-22 -p D:\cocos_project\Parkour\frameworks\runtime-src\proj.android'
13:20:41 building native
13:20:42 NDK build mode: debug
13:20:42 NDK_TOOLCHAIN_VERSION: 4.9
13:20:42 running: '"D:\android-ndk-r10e\ndk-build" -C D:\cocos_project\Parkour\frameworks\runtime-src\proj.android -j1 NDK_MODULE_PATH=D:\Cocos\frameworks/cocos2d-x-3.5;D:\Cocos\frameworks/cocos2d-x-3.5/cocos;D:\Cocos\frameworks/cocos2d-x-3.5/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'
13:20:42 Ndk build failed!