An Unknown Error occured while starting the native packager Mendix Studio Pro 9.1.0

1
Hi Experts, I just created a new project using the Native Mobile App template, and then when I try to run the project, I encounter this error System.AggregateException: One or more errors occurred. ---> Mendix.Modeler.Deployment.Native.UnableToStartNativePackagerException: Unable to start native packager    at Mendix.Modeler.WebUI.Deployment.Native.Packager.NativePackagerManager.<StartServing>d__22.MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Deployment\Native\Packager\NativePackagerManager.cs:line 76    --- End of inner exception stack trace ---    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)    at Mendix.Modeler.Deployment.Local.LocalRunner.DoLaunchNativePackager() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Deployment\Local\LocalRunner.cs:line 256    at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass0_0.<Do>b__0() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\BackgroundUtil.cs:line 17    at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass1_0`1.<Do>b__0(Object s, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\BackgroundUtil.cs:line 29    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) ---> (Inner Exception #0) Mendix.Modeler.Deployment.Native.UnableToStartNativePackagerException: Unable to start native packager    at Mendix.Modeler.WebUI.Deployment.Native.Packager.NativePackagerManager.<StartServing>d__22.MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Deployment\Native\Packager\NativePackagerManager.cs:line 76<---   Any reason why? Will probably stick to 8.18.3 for now for Native Mobile App development. Thanks.
asked
2 answers
2

I had the same error and got it working by: 
- Removing my custom widgets

- Deleting the deployment and .mendix-cache folders and the launch file

- Restarting my PC 

- Adding my custom widgets again
I am not sure what made the difference and i don’t think the custom widget part applies in your case, but in my case the above made my Studio Pro “run” working again.

answered
0

Restarting the computer or close all Mendix activities in the task manager worked for me

answered