Android NDK SDL Deprecated

Android NDK SDL Deprecated

本文关键字:Deprecated SDL NDK Android      更新时间:2023-10-16

我用SDL安装了NDK。

我使用的是带有MinGW的Windows7。

当我在Android Studio中编译源代码时,我会收到警告:[deprecation] AbsoluteLayout in android.widget has been deprecated

我从文件中收到此警告4次:/jni/SDL/android-project/src/org/libsdl/app/SDLActivity.java

我也收到这些警告:

[deprecation] CHANNEL_CONFIGURATION_STEREO in AudioFormat has been deprecated
[deprecation] CHANNEL_CONFIGURATION_MONO in AudioFormat has been deprecated
[deprecation] SURFACE_TYPE_GPU in SurfaceHolder has been deprecated
[deprecation] setType(int) in SurfaceHolder has been deprecated
[deprecation] LA_88 in PixelFormat has been deprecated
[deprecation] RGBA_4444 in PixelFormat has been deprecated
[deprecation] RGBA_5551 in PixelFormat has been deprecated
[deprecation] RGB_332 in PixelFormat has been deprecated
[deprecation] ACTION_POINTER_ID_MASK in MotionEvent has been deprecated
[deprecation] ACTION_POINTER_ID_SHIFT in MotionEvent has been deprecated

我使用Mercurial安装SDL:hg clone http://hg.libsdl.org/SDL并遵循README-android.txt 中的步骤

我有没有安装错误?SDL是否不再受支持?如何修复这些警告?

我可能误解了你的问题,但我认为SDL从未得到谷歌的正式支持。您遇到弃用警告的事实应该不会特别麻烦,但是,如果SDL团队有时间,您可能需要在未来的某个时候升级SDL版本,以利用较新的API。