You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing the latest version (6.6.0) of Graph SDK with a small program, but I am encountering a compile error due to a dependency issue.
Expected behavior
The program should compile and run properly.
Actual behavior
The following error occurs and prevents the program from compiling:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.806 s
[INFO] Finished at: 2024-04-19T13:37:58+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project graph-sample: Compilation failure
[ERROR] /home/moris/w/graph-sample/src/main/java/org/example/App.java:[21,38] cannot access com.microsoft.kiota.authentication.ObservabilityOptions
[ERROR] class file for com.microsoft.kiota.authentication.ObservabilityOptions not found
[ERROR]
In vscode message:
The project was not built since its build path is incomplete. Cannot find the class file for com.microsoft.kiota.authentication.ObservabilityOptions. Fix the build path then try
Steps to reproduce the behavior
The Maven dependencies are as follows. I have set it up according to the README.md
Hi @Ndiritu , I just encountered the same compiling error.
I'm using the constructor with proxy okHttpClient to initialize the GraphServiceClient, which also including
AzureIdentityAuthenticationProvider as param.
It seems like can not be handled using the solution you mentioned to initialize the client, so I added the dependancy manually as workaround too.
InetSocketAddress proxyAddress = new InetSocketAddress(proxyHost, proxyPort);
OkHttpClient httpClient = GraphClientFactory.create().proxy(new Proxy(Proxy.Type.HTTP, proxyAddress)).build();
AzureIdentityAuthenticationProvider authenticationProvider = new AzureIdentityAuthenticationProvider(credential, null, graphScope);
GraphServiceClient graphClient = new GraphServiceClient(authenticationProvider, httpClient);
I am testing the latest version (6.6.0) of Graph SDK with a small program, but I am encountering a compile error due to a dependency issue.
Expected behavior
The program should compile and run properly.
Actual behavior
The following error occurs and prevents the program from compiling:
In vscode message:
Steps to reproduce the behavior
The Maven dependencies are as follows. I have set it up according to the README.md
The program is as follows:
If the following dependency is added manually, it can compile and run correctly:
The text was updated successfully, but these errors were encountered: