android 非SDK API blacklist处理

现象:Android P上的提醒弹窗 (Detected problems with API compatibility(visit g.co/dev/appcompat for more info)

用veridex检测一堆问题,优先解决blacklist问题

#22: Reflection blacklist Landroid/service/media/IMediaBrowserServiceCallbacks$Stub;->asInterface use(s):
       Landroid/support/v4/media/IMediaBrowserServiceCallbacksAdapterApi21$Stub;->()V

#23: Reflection blacklist Landroid/service/media/IMediaBrowserServiceCallbacks;->onConnect use(s):
       Landroid/support/v4/media/IMediaBrowserServiceCallbacksAdapterApi21;->(Ljava/lang/Object;)V

#24: Reflection blacklist Landroid/service/media/IMediaBrowserServiceCallbacks;->onConnectFailed use(s):
       Landroid/support/v4/media/IMediaBrowserServiceCallbacksAdapterApi21;->(Ljava/lang/Object;)V

#25: Reflection blacklist Landroid/service/media/IMediaBrowserServiceCallbacks;->onLoadChildren use(s):
       Landroid/support/v4/media/IMediaBrowserServiceCallbacksAdapterApi21;->(Ljava/lang/Object;)V

项目中检测出上面四个blacklist调用,看上去有点蒙,  Landroid/support/v4/media/IMediaBrowserServiceCallbacksAdapterApi21构造函数内部调用属于support内部的问题了,app级别如何解决呢?
考虑可能和support版本有关,改为26.0.2上述四个消失。

备忘~

你可能感兴趣的:(android)