how to solve error "Failed to generate all binary output" in android device simulink?

 采纳的回答

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 个)

Use this link , to open sdk tools page.
Follow the below steps in the SDK tools page.
In the right corner, there is a checkbox (Show package Details), click that. Now under Android SDK Build-Tools in the same tab, you can uncheck 29.0.0-rc2,29.0.0-rc1 and check 28.0.3, then click apply. Check the attached screenshot for more information

7 个评论

After uninstalling the build tools, run Android Hardware setup again(https://www.mathworks.com/help/supportpkg/android/ug/install-support-for-android-devices.html#mw_ce00da2f-bde9-4f39-a69a-a9aaf014dbc0). After that delete the generated project folder and try to build the model.
Can you provide the output of the following command(type it in MATLAB command prompt)
codertarget.android.AppBuilder
After uninstalling build tools, hardware setup is not done again or the build tools is not uninstalled. I can see still your build tools version is 29.0.0rc2. Please try all the steps or else please contact technical support, they will guide you.
Thank you sir, after all these day you help me solve my error.
Finally it completed, thank you very much.

请先登录,再进行评论。

类别

在 帮助中心 和 File 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