Android NDK中SDL已被弃用

3

我使用SDL安装了NDK。

我使用的是带有MinGW的Windows 7。

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

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

我还收到以下警告:

[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不再支持吗?如何解决这些警告?

1
与您的问题无关,但“通常情况下,只有在必须使用NDK时才应使用它 - 绝不是因为您仅仅喜欢使用C / C ++编程”。 - Jesse Good
1
在这种情况下,这对我的应用程序非常重要。但还是谢谢你的建议! - lewisjb
1个回答

0
我可能误解了你的问题,但我不认为SDL曾经得到过Google的官方支持。你遇到弃用警告并不是特别麻烦,但是如果/当SDL团队开始使用更新的API时,你可能需要升级SDL版本以利用新的API。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接