Hardware Setup Fails During Configuration of Android Device
Show older comments
Dear all,
I have MATLAB R2023a installed on my computer, and Android Studio Arctic Fox Patch 4. When I enter the command 'androidhwsetup' on MATLAB command line, I encounter the following error message during Install TestApp.


I have tried many approaches to avoid this problem. When I copy 'settings.gradle' file into test file named as 'tpe9420..' and click on 'gradlew' test application succesfully compiles. But when I click Install TestApp again a new test file with a different name is generated. When I copy 'settings.gradle' file to the main folder it still do not work. I hope to see a solution to this problem. Thanks in advance.
10 Comments
Sutanu Maiti
on 2 Jun 2023
Can you please copy the entire message and paste here?
You should be able to use (ctrl + A) to select all and (ctrl + c) to copy on windows platform? Similar shortcut works for mac as well.
Without looking at the complete message its hard to debug.
By the way, have you tried any sample project from Android Studio to run? It that going through?
Cihan BAYINDIR
on 2 Jun 2023
Edited: Cihan BAYINDIR
on 2 Jun 2023
Sutanu Maiti
on 6 Jun 2023
Can you please copy settings.gradle file from 'C:\Users\cihan\AppData\Local\Temp\settings.gradle' and paste at 'C:\Users\cihan\AppData\Local\Temp\tp4d88eb32_aee1_4c1d_ac8b_bd7458b81c57\TestApp' and try inporting the 'C:\Users\cihan\AppData\Local\Temp\tp4d88eb32_aee1_4c1d_ac8b_bd7458b81c57\TestApp' project into Android Stduio and build from Android Studio?
Cihan BAYINDIR
on 6 Jun 2023
Cihan BAYINDIR
on 14 Jun 2023
Cihan BAYINDIR
on 14 Jun 2023
Cihan BAYINDIR
on 15 Jun 2023
Cihan BAYINDIR
on 25 Jun 2023
Matheus Fortunato Alves
on 14 Jul 2023
Hi Cihan,
I'm also having the same issue when trying to test Simulink Support Package for Android with a simple Camera + display image. Test app runs fine on matlab hwsetup: "Unable to locate build tool "Android Assembler": android".
Were you able to solve it?
Error:Invalid folder name in path 'C:\Users\Fortu\OneDrive\Área de Trabalho\OCC\OCC'. Folder name must not contain spaces or any of these characters & ' $ % = # ;
Caused by:
Validation error(s):
### Validating other build tools ...
Unable to locate build tool "Android Assembler": android
Sutanu Maiti
on 1 Aug 2023
The actual error is:
"Error:Invalid folder name in path 'C:\Users\Fortu\OneDrive\Área de Trabalho\OCC\OCC'. Folder name must not contain spaces or any of these characters & ' $ % = # ;"
The folder "Área de Trabalho" contains space and special character that the make file does not understand.
Can you please build the model in a folder that does not have any of those mentioned above?
Answers (0)
Categories
Find more on Setup and Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

