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

8 ビュー (過去 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 Center および File ExchangeAndroid Devices についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by