解决:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost

在Android 9.0  /  P 手机上,闪退,错误信息如下:

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;

解决:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost_第1张图片

这是GooglePlay Services方面的一个bug,在修复之前,你可以通过下面方法解决:

解决方法:

在清单文件 AndroidManifest.xml  的application 标签中添加:

如下:

解决:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost_第2张图片

你可能感兴趣的:(异常)