gpt4 book ai didi

Android NDK SDL 弃用

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:56:13 26 4
gpt4 key购买 nike

我用 SDL 安装了 NDK。

我正在使用带有 MinGW 的 Windows 7。

当我在 Android Studio 中编译源代码时,我收到警告:[弃用] android.widget 中的 AbsoluteLayout 已弃用

我从文件中收到此警告 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 从未得到 Google 的正式支持。您遇到弃用警告这一事实应该不会特别麻烦,但是如果/当 SDL 团队解决这个问题时,您可能必须在将来的某个时候升级您的 SDL 版本以利用更新的 API。

关于Android NDK SDL 弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18433561/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com