フィルターのクリア

Why do I get an error when deploying to Android Device hardware?

2 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2019 年 4 月 22 日
編集済み: MathWorks Support Team 2024 年 4 月 19 日
I am trying to run the example, "Color Detection" of the Simulink Support Package for Android Devices, available at https://www.mathworks.com/help/simulink/supportpkg/android_ref/color-detection.html#d117e10164
When I try to deploy to hardware, i.e. in Task 2, Step 7 and in Task 3, Step 4 I receive the following error message:
Execution failed for task ':libraries:opencv:compileDebugAidl'.
> java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process
C:\Users\Customer\AppData\Local\Android\sdk\build-tools\29.0.0-rc2\aidl.exe with arguments {
-pC:\Users\Customer\AppData\Local\Android\sdk\platforms\android-28\framework.aidl
-oC:\Users\Customer\Documents\androidColorDetectionCamera_ert_rtw\androidColorDetectionCamera\libraries\opencv\build\generated\source\aidl\debug
-IC:\Users\Customer\Documents\androidColorDetectionCamera_ert_rtw\androidColorDetectionCamera\libraries\opencv\src
-IC:\Users\Customer\Documents\androidColorDetectionCamera_ert_rtw\androidColorDetectionCamera\libraries\opencv\src\debug\aidl
-dC:\Users\Customer\AppData\Local\Temp\aidl5497400050202158232.b
C:\Users\Customer\Documents\androidColorDetectionCamera_ert_rtw\androidColorDetectionCamera\libraries\opencv\src\org\opencv\engine\OpenCVEngineInterface.aidl}
Why does it fail? What can I do to make it work, so that I can deploy to my Android device?

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 4 月 18 日
編集済み: MathWorks Support Team 2024 年 4 月 19 日
Please note, the Camera block works fine with Android SDK Build Tools 28.0.3. However, if build tool version 29.0.0-rc2 is present then the above issue comes up.
 
To resolve the issue, you can uninstall build tool 29.0.0-rc2 and install version 28.0.3. After uninstalling, please run Android Hardware setup again. Then try deploying the model to the Android Device.
  1 件のコメント
Manali Gupta
Manali Gupta 2019 年 6 月 14 日
@Xu Da Were you able to resolve your problem ?
I am facing the same issue.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRun on Android Device についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by