### Build procedure for camera aborted due to an error.

8 views (last 30 days)
Hi, please help me in this problem,
I want to use my android phone's camera as an output for my App (using App Designer MATLAB).
I found that I can use Simulink Android toolbox to realize this goal.
The problem is everytime I clicked deploy to hardware, it always shows this error
### Starting build procedure for: camera Execution failed for task ':libraries:opencv:compileDebugAidl'. > A failure occurred while executing com.android.build.gradle.tasks.AidlCompile$AidlCompileRunnable > com.android.ide.common.process.ProcessException: Error while executing process C:\Users\hp\AppData\Local\Android\Sdk\build-tools\33.0.0\aidl.exe with arguments {-pC:\Users\hp\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oC:\Users\hp\Documents\MATLAB\Examples\R2021a\android\GettingStartedWithAndroidExample\camera_ert_rtw\camera\libraries\opencv\build\generated\aidl_source_output_dir\debug\out -IC:\Users\hp\Documents\MATLAB\Examples\R2021a\android\GettingStartedWithAndroidExample\camera_ert_rtw\camera\libraries\opencv\src -IC:\Users\hp\Documents\MATLAB\Examples\R2021a\android\GettingStartedWithAndroidExample\camera_ert_rtw\camera\libraries\opencv\src\debug\aidl -dC:\Users\hp\AppData\Local\Temp\aidl15215273838714677648.d C:\Users\hp\Documents\MATLAB\Examples\R2021a\android\GettingStartedWithAndroidExample\camera_ert_rtw\camera\libraries\opencv\src\org\opencv\engine\OpenCVEngineInterface.aidl} * ### Build procedure for camera aborted due to an error.
Build Summary
1
Elapsed: 0.48 sec
Top model targets built: Model Action Rebuild Reason ================================================================== camera Failed Code generation information file does not exist.
My block diagram is I connected Android Camera with Android Video Display as dummy trial.
I have followed all steps during the installation of the support package and installed all the latest version of Android Studio.
For your information I am using MATLAB R2021a and Simulink version 10.0
Please help, thank you !

Accepted Answer

Sutanu Maiti
Sutanu Maiti on 13 Oct 2022
Edited: Sutanu Maiti on 13 Oct 2022
Can you please uninstall android build tools 33.0.0 and install 32.00 and run Hardware Setup screen once more? Once hardware setup goes through, you should be able to 'Build load, and start' the model again.
Follow below instruction to have required toold in android sdk:
From your Android studio, open sdk manager and have the tools as mentioned below:
There is a build issue of OpenCV with latest (i.e. 33) android build tools. Once resolved we will publish the fix. Till then please use 32 as the most recent API and build tools.

More Answers (0)

Categories

Find more on Android Devices 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!