【问题标题】:Android NDK SDL DeprecatedAndroid NDK SDL 已弃用
【发布时间】:2013-08-28 07:39:29
【问题描述】:

我用 SDL 安装了 NDK。

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

当我在 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?如何解决这些警告?

【问题讨论】:

  • 与您的问题无关,但In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++
  • 在这种情况下,它对我的​​应用程序至关重要。不过谢谢你的建议!

标签: android c++ android-ndk sdl deprecated


【解决方案1】:

我可能误解了您的问题,但我认为 SDL 从未得到 Google 的正式支持。您遇到弃用警告这一事实应该不会特别麻烦,但是如果/当 SDL 团队开始使用它时,您可能必须在未来某个时候升级您的 SDL 版本以利用更新的 API。

【讨论】:

    猜你喜欢
    • 2016-08-01
    • 2015-04-27
    • 2017-03-12
    • 2016-01-05
    • 2016-03-21
    • 1970-01-01
    • 2012-12-25
    • 2021-08-31
    • 2015-09-18
    相关资源
    最近更新 更多