android code generation error

1 次查看(过去 30 天)
MUGILAN MUTHUSAMY
MUGILAN MUTHUSAMY 2019-11-25
编辑: Saurabh 2024-12-10
Could not resolve all files for configuration ':libraries:opencv:lintClassPath'. > Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.12) > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar'. > Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

回答(1 个)

Saurabh
Saurabh 2024-12-10
编辑:Saurabh 2024-12-10
The build error appears to be related to network or SSL certificate issues that prevent Gradle from downloading necessary dependencies. This can occur due to network restrictions or certificate path validation problems.
Here are some steps that might help resolve the issue:
  • Network and Certificate Check: Ensure that the network allows access to the required Maven repositories and that the system's SSL certificates are up-to-date and trusted.
  • Reinstall the Support Package: Try uninstalling and reinstalling the Simulink Support Package for Android Devices to ensure a clean setup.
  • Create a Sample Project: Launch Android Studio, create a new sample project, and attempt to build it. This can help verify if the issue is specific to the TestApp or a more general configuration problem.
  • Accessing the Temporary Directory: If the TestApp was created in a temporary directory, you can locate it using the MATLAB command `cd(tempdir)`. Open this project in Android Studio and try building it directly.
  • Testing on a Different Environment: If possible, try performing the hardware setup on a different machine or network to see if the issue persists. This will help determine if the problem is environment-specific.
I hope this helps.

类别

Help CenterFile Exchange 中查找有关 Setup and Configuration 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by