Xamarin.Cognitive.Face API connecting problems

匆匆过客 提交于 2021-01-29 15:09:46

问题


I tried to use this Nuget package, but I can't connect to the API. I got an error

" Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;"

so I can't use any of the FaceClient functions- they're all return null. I use Xamarin Android


回答1:


I added the line <uses-library android:name="org.apache.http.legacy" android:required="false" /> at the <applicaion> tag in the AndroidManifest.xml file so it solved this problem.



来源:https://stackoverflow.com/questions/60238076/xamarin-cognitive-face-api-connecting-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!