Detected problems with api compatibility (visit g.co/dev/appcompat for more info)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Detected problems with api compatibility (visit g.co/dev/appcompat for more info)相关的知识,希望对你有一定的参考价值。

参考技术A 如果应用的TARGET_SDK_VERSION不是28即android9.0,应用启动时报Detected problems with api compatibility (visit g.co/dev/appcompat for more info)如下图:

https://github.com/react-native-community/react-native-image-picker/issues/978

Android P 也就是android9.0 谷歌限制开发者调用非官方公开API 方法或接口(使用@hide注解的系统源码),当开发者用反射直接调用源码时就会出现上述提示框。谷歌旨在提示开发者尽量少使用反射只用调用系统api,以免造成不必要的麻烦。但是项目中,有些功能实现要用到怎么办?即使咱们不用,依赖的第三方类库,用到怎么办?这就坑了。所以,负负得正,哈哈,咱们在使用反射怼回去,屏蔽提示

但是项目升到Android9.0后,有出现问题了,请看9.0适配

以上是关于Detected problems with api compatibility (visit g.co/dev/appcompat for more info)的主要内容,如果未能解决你的问题,请参考以下文章

System program problem detected 解决

关闭 ubuntu System program problem detected

EF关于报错Self referencing loop detected with type的原因以及解决办法

怎样关掉 ubuntu 中的 System Program Problem Detected 提示框

JSON.NET的Self referencing loop detected with type的原因以及解决办法

电脑蓝屏怎么办 a problem has been detected and windows