Downloading Encryption from the marketplace on a brand new blank application is giving a gradle error.

0
FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':copyDependencies'.> Could not resolve all files for configuration ':implementation'.   > Could not download bcpg-jdk18on-1.81.jar (org.bouncycastle:bcpg-jdk18on:1.81)      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk18on/1.81/bcpg-jdk18on-1.81.jar'.         > Could not GET 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk18on/1.81/bcpg-jdk18on-1.81.jar'.            > Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect   > Could not download bcpkix-jdk18on-1.81.jar (org.bouncycastle:bcpkix-jdk18on:1.81)      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpkix-jdk18on/1.81/bcpkix-jdk18on-1.81.jar'.         > Could not GET 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpkix-jdk18on/1.81/bcpkix-jdk18on-1.81.jar'.            > Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect   > Could not download bcutil-jdk18on-1.81.jar (org.bouncycastle:bcutil-jdk18on:1.81)      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcutil-jdk18on/1.81/bcutil-jdk18on-1.81.jar'.         > Could not GET 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcutil-jdk18on/1.81/bcutil-jdk18on-1.81.jar'.            > Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect   > Could not download bcprov-jdk18on-1.81.jar (org.bouncycastle:bcprov-jdk18on:1.81)      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk18on/1.81/bcprov-jdk18on-1.81.jar'.         > Could not GET 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk18on/1.81/bcprov-jdk18on-1.81.jar'.            > Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect   > Could not download commons-io-2.17.0.jar (commons-io:commons-io:2.17.0)      > Could not get resource 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.17.0/commons-io-2.17.0.jar'.         > Could not GET 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.17.0/commons-io-2.17.0.jar'.            > Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect * Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 7s
asked
2 answers
0

This can have multiple causes, 

 

The best way is to clean your userlibs folders and redownload the marketplace modules.

 

After that check if there are no muliple bouncy castle libs with different versions, if so clean them up so you have the latest version

answered
0

The error message says Mendix can't download a Java dependency.

 

This could be because you are using a network that uses a proxy server. If this is the case, have a look at the documentation on how to set up your proxy settings for managed dependencies in Studio Pro.

 

https://docs.mendix.com/refguide/managed-dependencies/#proxy-settings

 

I hope this helps!

answered