Android project directory path name exceeds the 119 character

5 ビュー (過去 30 日間)
Guilherme Franklin
Guilherme Franklin 2022 年 1 月 11 日
コメント済み: Walter Roberson 2023 年 5 月 27 日
And I'm getting the following error:
How do I solve?

採用された回答

Walter Roberson
Walter Roberson 2022 年 1 月 11 日
Quit MATLAB (for the moment)
Rename C:\Users\Guilherme\Documents\MATLAB to a shorter name, such as C:\Users\Guilherme\Documents\ML
Now start MATLAB again. Then
userpath('C:\Users\Guilherme\Documents\ML')
or whatever name you used.
However, this particular rename only gets you 4 characters of leeway. You would be better off creating a new directory such as
C:\Users\G\Doc\ML
and copying C:\Users\Guilherme\Documents\MATLAB into it, and then using userpath() to activate it. Or if you have a separate partition, perhaps something like D:\MATLAB
  2 件のコメント
Jonathan Gadiel Ramírez Martínez
Jonathan Gadiel Ramírez Martínez 2023 年 5 月 27 日
Does this not damage the paths of the other documents in the Matlab folder? when changing the name to the address, recently I had a problem when changing the username to install android studio, since my previous user had spaces, but after changing it, no documents were located for me anymore.
Walter Roberson
Walter Roberson 2023 年 5 月 27 日
I do not know?
userpath() is what should be used internally. But you pathdef might reflect the old locations. And especially for third-party code such as Android, I would not trust that the interface code definitely uses the Mathworks standards to use userpath()

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

その他の回答 (1 件)

Sutanu Maiti
Sutanu Maiti 2022 年 1 月 12 日
You may change your "Current Folder" to a shorter path, for exmaple "C:\Temp" and build the model.

カテゴリ

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