Azure-Samples / azure-ai-vision-sdk

SDK for Microsoft's Azure AI Vision
MIT License
75 stars 46 forks source link

Add default HttpClient to app/build.gradle #97

Closed serious198706 closed 1 month ago

serious198706 commented 1 month ago

A default HttpClient implementation should be added to build.gradle, or there will be an issue A request was made to load the default HttpClient provider but one could not be found on the classpath. If you are using a dependency manager, consider including a dependency on azure-core-http-okhttp or azure-core-http-httpurlconnection. Depending on your existing dependencies, you have the choice of OkHttp or HttpUrlConnection implementations. Additionally, refer to https://aka.ms/azsdk/java/docs/custom-httpclient to learn about writing your own implementation.

Purpose

Make the kotlin demo run successfully.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

What to Check

Verify that the following are valid

serious198706 commented 1 month ago

The issue occurs at FaceAnalyzerBuilder.java line 165-169.

dipidoo commented 1 month ago

Thank you!