Android NDK SDL Deprecated
Android NDK SDL Deprecated
我用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。
相关文章:
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- Mix_Init和Mix_OpenAudio SDL之间的区别是什么
- SDL 窗口不会弹出
- SDL 操纵杆按钮按下/C++
- VSCode IntelliSense无法识别SDL框架的SDL_image扩展库
- C++/SDL "initial value of reference to a non-const must be an lvalue"
- SDL 映像:无法打开映像,仅显示错误消息
- 如何在 3D OpenGL 场景上绘制 SDL 2D 矩形?
- "Undefined symbols for architecture x86_64" 在 SDL 2 (macOS) 中
- 为什么 SDL 在 Mac 上比 Linux 慢得多?
- 在 OSX 上打开 SDL 窗口时不要打开终端窗口
- SDL + OpenGL ES 2.0 使用着色器显示纹理
- SDL GPU 为什么将两个图像分成两个单独的循环更快?
- 在 cmake 中找不到 SDL 库
- SDL/C++: 如何平滑但随机地移动矩形?
- 如何与 SDL 库链接?
- 为什么我的C++代码不呈现 SDL 矩形?
- 为什么要在初始化SDL之前在SDL中声明指针
- C++/SDL 如何覆盖数组?
- Android NDK SDL Deprecated