Unable to run native mobile app locally

0
Error message : One or more errors occurred. (Unable to start native packager) Stacktrace detailed log: System.AggregateException: One or more errors occurred. (Unable to start native packager)  ---> Mendix.Modeler.Deployment.Native.UnableToStartNativePackagerException: Unable to start native packager    at Mendix.Modeler.WebUI.Deployment.Native.Packager.NativePackagerManager.StartServing() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Deployment\Native\Packager\NativePackagerManager.cs:line 82    --- 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 System.Threading.Tasks.Task.Wait()    at Mendix.Modeler.Deployment.Local.LocalRunner.DoLaunchNativePackager() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Deployment\Local\LocalRunner.cs:line 255    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 16    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.WorkerThreadStart(Object argument)
asked
2 answers
1

On what port is your runtime running? 

We recommend keeping the Runtime port in your configuration on 8080. If you change it, do not change it to 8083, because that is designated for app packaging. In your package, as the runtime is set to port 8083, an issue occurs (as the app packaging cannot start, as the port it wants to use is occupied). 

Please refer to the following link:
https://docs.mendix.com/howto/mobile/common-issues#2-1-port-issues

If that doesn’t help, could you share the native_packager_log.txt from the '../deployment/log' folder from the project? 

answered
0

Delete the deployment and .mendix-cache folders and then re-launch your project

answered