问题
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