### Build procedure for camera aborted due to an error.
조회 수: 7 (최근 30일)
이전 댓글 표시
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 !
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Android Devices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!