I am attempting to Use Fast Deployment
to quickly test my Android App in the emulator. I am doing this because, as you probably know, building and testing an app on the emulator is incredibly slow and quite frustrating so I need to speed this up.
PS: If you have any advice on how you can deploy and run an app on an emulator in under 30 seconds I'd greatly appreciate it. My app is tiny and simple so it shouldn't take bloody 1.5 mins to run on the emulator?
The deployment is failing and giving me the error:
Xamarin.AndroidTools.AndroidDeploymentException:
FastDevDirectoryCreationFailed at
Xamarin.AndroidTools.AndroidDeploySession.WaitForRemoteDirCreation(String
destinationPath, CancellationToken token) at
Xamarin.AndroidTools.AndroidDeploySession.InstallAssemblies(String
destinationPath, CancellationToken token) at
Xamarin.AndroidTools.AndroidDeploySession.FastDev(Boolean useExternal)
at Xamarin.AndroidTools.AndroidDeploySession.Run(CancellationToken
token) at
Xamarin.AndroidTools.AndroidDeploySession.RunLogged(CancellationToken
token) at
Xamarin.AndroidTools.AndroidDeploySession.Start(CancellationToken
token)
How I can fix this error? And successfully Use Fast Deployment
and deploy it to the emulator? How you speed up Android emulator deployment and testing?
Relevant information:
If I deploy to a different emulator using Use Fast Deployment
I get no deployment error but when the app runs it crashes immediately with: Unfortunately 'app' has stopped
Right-mouse click the Project in Visual Studio. Select Properties. Go to "Android Options" Uncheck: "Use Fast Deployment (debug mode only)"
Startup Tracing If you go into the Android Options of your Xamarin projects, you'll see this: If you enable the AOT Compilation (Ahead of time), your app performances will improve significantly and so the startup time, but your apk size will increase as well.
Manual InstallationCopy the file to your Android device's physical memory or an SD card and then run the file from your device. Android, by default, blocks installation of Apps that are not from PlayStore. To install your App, you must enable it to accept the App installation from the Settings.
Though I don't know what fast deployment is, I can however suggest a very fast emulator - Genymotion. I use it for my app and it deploys in under 10 seconds. Below is the link. https://www.genymotion.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With