2013-08-25 58 views
2

我使用SDL安裝了NDK。Android NDK SDL已棄用

我使用Windows 7使用MinGW。

當我編譯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 
hg clone http://hg.libsdl.org/SDL 在,並遵循以下步驟:

我使用水銀安裝SDL

我有沒有正確安裝的東西嗎? SDL不再受支持了嗎?我如何解決這些警告?

+1

無關你的問題,而是'一般情況下,你應該只使用NDK如果是,從來沒有應用你的基本,因爲你只是喜歡在C/C++編程' –

+1

在這種情況下它是我的應用程序是必不可少的。但感謝您的建議! – lewisjb

回答

0

我可能會誤解你的問題,但我不相信,SDL曾經被正式通過谷歌的支持。那你打廢棄警告,這一事實應該不會特別麻煩,但是你可能在將來的某個時候升級你的SDL的版本,以較新的API,如果/當SDL團隊都繞它的優勢。