APP designed in MATLAB not starting
67 次查看(过去 30 天)
显示 更早的评论
I downloaded a MATLAB app via a .mlappinstall file. When I try to open the app, I get the following message: Function: 'GUI_Gas_Sensor' in the current folder shadows the app entry point. Change the current foler and execute the app again.
How can I get the app to open properly? Is there some sort of installation error?
0 个评论
回答(3 个)
Ananya Tewari
2021-8-6
Hi David,
Apparently there is another function named 'GUI_Gas_Sensor' in your current directory which shadows the app entry point. As suggested by the message Change the current foler and execute the app again, you can try moving your .mlapp to a new directory and execute the app again. There is also a chance that the .mlappinstall file itself has some problems, in that case you need to verify from the source where you downloaded the file.
2 个评论
WTxnitz
2022-3-14
I have the same problem. This is a new issue. I have been using and creating shared apps for years. This was never an issue before.
Indeed moving the .mlapp to another directory works. But it should NOT be necessary.
The "function" it is objecting to is the main app!
I use a mixture of internal code and external files in my main matlab directory.
WTxnitz
2022-3-17
Correction:
I had not used the app install in a while, and I was inadvertently using a different procedure from before.
Previously, I had been putting the mlapp and installer files in a different directory.
Once I reverted to the proper method, no more errors. My bad.
Apologies to all.
So to be clear, the mlapp and installer files must be in a different directory from the working directory.
Al in St. Louis
2023-4-7
It is the mlappinstall file itself that won't let it run. Delete it or put it in another folder. I have to admit that it seems like a very poor design, but it is what it is. Mathworks behaves more and more like Microsoft each year. It's sad.
0 个评论
Massimo
2023-9-5
Sorry if I answer to a bit old question, but I'm having the same problem. I have installed an app created with app designer, but it doesn't start giving me the exact message shown in first post of this discussion. If I change folder the app starts, but the i get errors about method not definied for class or removed from matlab's search path.
2 个评论
WTxnitz
2023-9-5
The error is because the app designer project .mlapp can't be in your working folder
Set your startup to your normal working folder. Best if you also add to your path.
Create another folder and move the .miapp there. Don't leave a copy in the working folder.
Open the designer from apps > design app, and open the app from the new location
Hopefully this solves your problem.
Massimo
2023-9-5
编辑:Massimo
2023-9-5
Thank you for your answer. In the meantime I waited for help I have tried to do some other tests, and I found another solution (I think XD).
I save my .mlapp with a different name from its usual, then i create the mlapinstall and I install the file. Once done this, I delete the .mlapp I created with a differnt name and everything works. No need to change my working folder.
Maybe more or less is the same thing you just said me. Thanks again
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Package and Share Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!