cocos2 -x -构建android错误。

时间:2022-03-05 18:54:45

So when I try to build my project for android I get this error:

所以当我试图建立我的android项目时,我得到了这个错误:

 Android NDK: WARNING: APP_PLATFORM android-15 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
Android NDK: ERROR:D:\MyGame\MyCppGame\proj.android../cocos2d/external/freetype2/prebuilt/android/Android.mk:cocos_freetype2_static: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that D:/MyGame/MyCppGame/proj.android/../cocos2d/external/freetype2/prebuilt/android/arm64-v8a/libfreetype.a exists or that its path is correct
make: Entering directory D:/MyGame/MyCppGame/proj.android'
D:/android-ndk/android-ndk-r12b/build//../build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
make: Leaving directoryD:/MyGame/MyCppGame/proj.android'
Error running command, return code: 2.

In fact there's no folder "arm64-v8a" there and I've tried to run it under a different (newer) sdk version still the same error. I've downloaded the 64bit NDK package. What can I do?

事实上,这里没有“arm64-v8a”文件夹,我试着在不同的(更新的)sdk版本下运行它,但仍然有相同的错误。我下载了64bit NDK软件包。我能做什么?

1 个解决方案

#1


0  

Try to change to an older version of NDK such as 'ndk_r10c' or 'ndk_r10e' other than the latest version.

试着改变旧版本的NDK,比如“ndk_r10c”或“ndk_r10e”,而不是最新版本。

And It does not matter with sdk version. Just a warning.

它与sdk版本无关。只是一个警告。

#1


0  

Try to change to an older version of NDK such as 'ndk_r10c' or 'ndk_r10e' other than the latest version.

试着改变旧版本的NDK,比如“ndk_r10c”或“ndk_r10e”,而不是最新版本。

And It does not matter with sdk version. Just a warning.

它与sdk版本无关。只是一个警告。