Apache DefaultHttpClient invocation results in “java.lang.RuntimeException: Stub!”

后端 未结 5 493
终归单人心
终归单人心 2020-12-18 08:31

I\'m dipping my toes into Android development. I have a project that will interface with a RESTful resource and I\'m trying to figure out how to do a basic GET with params o

5条回答
  •  渐次进展
    2020-12-18 09:06

    After API 28, legacy libraries such as HttpClient have been deprecated, throws a Stub! error and you must now include this in your Manifest file:

      
    

    https://developers.google.com/maps/documentation/android-sdk/config#specify_requirement_for_apache_http_legacy_library

提交回复
热议问题