I have installed Simulink Support package for Android Devices on MATLAB R2017b.
Installation went through, but during Hardware setup screen's verify configuration page, build failed.
The message thrown is:
Unexpected error : FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'TestApp'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:1.2.1. Required by: :TestApp:unspecified > Could not resolve com.android.tools.build:gradle:1.2.1. > Could not get resource 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.2.1/gradle-1.2.1.pom'. > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.2.1/gradle-1.2.1.pom'. > peer not authenticated * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 3.769 secs
Best Answer