Compilation error while building an app for AWS textract connector

\Mendix\AWSLabs-main\deployment\build_core.xml compile:    [javac] Compiling 194 source files to G:\skrishna\AVD Desktop 2024\Mendix\AWSLabs-main\deployment\run\bin    [javac] G:\skrishna\AVD Desktop 2024\Mendix\AWSLabs-main\javasource\amazontextractconnector\impl\ error: cannot find symbol    [javac]             AuthCredentialsProvider.setCredentialProvider(builder, context, credentials, AWS_HEADER_VALUE);    [javac]                                    ^    [javac]   symbol:   method setCredentialProvider(TextractClientBuilder,IContext,Credentials,String)    [javac]   location: class AuthCredentialsProvider    [javac] Note: Some input files use or override a deprecated API.    [javac] Note: Recompile with -Xlint:deprecation for details.    [javac] Note: Some input files use unchecked or unsafe operations.    [javac] Note: Recompile with -Xlint:unchecked for details.    [javac] 1 error BUILD FAILEDG:\skrishna\AVD Desktop 2024\Mendix\AWSLabs-main\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 1 minute 8 seconds  
1 answers

These errors are usually down to having multiple versions of the same jar file in your userlib. I would suggest first downloading the latest version of the module from the marketplace, then going into the userlib folder and removing any duplicate jar files you see with the same name, keeping only the version with the highest revision number.


Good luck!