Why does build fail at 'Verify Configuration of Your Android Device' screen during Hardware Setup for Simulnk Support package for Android devices in R2017b MATLAB?

조회 수: 3 (최근 30일)
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 

채택된 답변

Sruthi Yenugula
Sruthi Yenugula 2018년 7월 5일
This issue is related to Android Gradle Plugin download. Use this work around for now to get started with Android Support Package. Attached the AndroidpatchFor17b.zip file. It contains 2 p files and 1 m script file. In MATLAB, go to path where you have placed that folder and then open the pluginfix.m file and click on Run button. Now try Hardware Setup again.
  댓글 수: 7
Walter Roberson
Walter Roberson 2018년 9월 14일
If it still says that it can not copy the .p files, then you might need to Run As Administrator to execute pluginfix properly.
Sruthi Yenugula
Sruthi Yenugula 2018년 9월 14일
Thanks Walter.
Hi Rizwan,
As suggested by Walter, please start MATLAB as administration and run the pluginfix m file.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

kkk kkk
kkk kkk 2019년 8월 20일
How long did it take you to configure the hardware?

카테고리

Help CenterFile Exchange에서 Setup and Configuration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by