MATLAB Answers


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?

Asked by Sutanu Maiti on 4 Jul 2018
Latest activity Commented on by kkk kkk
on 20 Aug 2019
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 Required by: :TestApp:unspecified > Could not resolve > Could not get resource ''. > Could not GET ''. > 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 


Sign in to comment.

2 Answers

Answer by Sruthi Yenugula on 5 Jul 2018
 Accepted Answer

This issue is related to Android Gradle Plugin download. Use this work around for now to get started with Android Support Package. Attached the 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.


Hi Rizwan, After downloading and unzipping do the following steps in the MATLAB.
1) In MATLAB, go to the path where you have placed that folder(downloaded and unzipped folder) and then open the pluginfix.m file present in that folder.
2) After opening the file, click on Run button in the MATLAB.
3) Now try Hardware Setup again.
let me know if you still face any issues.
If it still says that it can not copy the .p files, then you might need to Run As Administrator to execute pluginfix properly.
Thanks Walter.
Hi Rizwan,
As suggested by Walter, please start MATLAB as administration and run the pluginfix m file.

Sign in to comment.

Answer by kkk kkk
on 20 Aug 2019

How long did it take you to configure the hardware?

  1 Comment

Sign in to comment.