App building on Android device fails due to an error: Cannot read file androidObj​ectDetecti​on\\src\\m​ain\\res\\​layout\\An​droidManif​est.xml.

1 回表示 (過去 30 日間)
Hi heveryone. I have MATLAB R2018b.
  • I have the simulink support package for android devices correctly installed
  • I followed the guided procedure to install Android Studio and all the tools.
  • When i try to build the Simulink model to my device I get the error:
Cannot read file filename C:\Users\User\Desktop\Examples\MotoObjectDetection_ert_rtw\MotoObjectDetection\src\main\AndroidManifest.xml
  • Two new folders are created inside my working folder:
  • MotoObjectDetection_ert_rtw
  • slprj
When I try to re-build again evrething works fine and the app is deployed to the hardware.
How can I work around this problem?

採用された回答

Sruthi Yenugula
Sruthi Yenugula 2018 年 11 月 20 日
regarding the below error, looks like permission issues. Please build the models in different directory and see if you get the same issue. please let us know if you face any issues
Cannot read file filename C:\Users\User\Desktop\Examples\MotoObjectDetection_ert_rtw\MotoObjectDetection\src\main\AndroidManifest.xml

その他の回答 (1 件)

Alessio Conte
Alessio Conte 2018 年 11 月 20 日
編集済み: Alessio Conte 2018 年 11 月 20 日
Hi Sruthi, I tried in a different directory (C:\data) but still the same error.
It looks like cannot file the AndroidManifest.xml file at th first building but yes it find it at the second one.
When I installed R2018b (yesterday) i saved matlab not in C:\ Program Files as usual but in C:\MATLAB_Installation.This because the error I was having before was that the buildig process didn't like path with spaces in the folders names.
I don't know if this information may help.
  1 件のコメント
Sruthi Yenugula
Sruthi Yenugula 2018 年 11 月 20 日
Thanks for providing the information. Will check, if we can reproduce the issue and provide resolution for the same.

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

カテゴリ

Help Center および File ExchangeSetup and Configuration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by