Android project directory path name exceeds the 119 character
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to run the simple Simulink model found in: https://www.mathworks.com/help/supportpkg/android/ref/getting-started-with-android-devices.html
And I'm getting the following error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/859785/image.png)
How do I solve?
0 个评论
采纳的回答
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
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
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
2022-1-12
You may change your "Current Folder" to a shorter path, for exmaple "C:\Temp" and build the model.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Setup and Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!