问题描述
使用 cygwin 编译我的 cocos2d-x 项目时收到以下警告.
I am getting the following warning when compiling my cocos2d-x project with cygwin.
`/cygdrive/e/project/MyGame/proj.android `
/cygdrive/e/android-ndk-r8e/build/core/add-application.mk:128: Android NDK: WARNING:APP_PLATFORM android-9 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
我正在使用 NDK 版本 r8e.我的 AndroidManifest.xml 中的最低 SDK 版本是 8,但我没有在任何地方将 APP_PLATFORM 指定为 android-9.我怎样才能将其更改为 8.
I am using NDK version r8e. My minimum SDK version is 8 in my AndroidManifest.xml but i do not specify APP_PLATFORM as android-9 anywhere. How can i change this to 8.
谁能告诉我如何解决这个警告,因为我认为这可能会导致问题.
Can anyone tell me how to solve this warning as I think this may cause issues.
推荐答案
看来您使用的是 Android-9 作为运行时.您可以将 APP_PLATFORM := android-8
放入您的 Application.mk
文件中,警告就会消失.
It seems that you are using Android-9 as runtime. You can put APP_PLATFORM := android-8
in your Application.mk
file and the warning will disappear.
这篇关于Android NDK:警告:APP_PLATFORM android-9 大于 android:minSdkVersion 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!