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

조회 수: 26 (최근 30일)
Rimsha Muzaffar
Rimsha Muzaffar 2022년 10월 11일
편집: Sutanu Maiti 2022년 10월 13일
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 !

채택된 답변

Sutanu Maiti
Sutanu Maiti 2022년 10월 13일
편집: Sutanu Maiti 2022년 10월 13일
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.

추가 답변 (0개)

카테고리

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