Bug 14474 - Getting "FastDev directory creation failed" error when user again try to Debug android application after running application in Release mode.
Summary: Getting "FastDev directory creation failed" error when user again try to Debu...
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
: 19966 ()
Depends on:
Reported: 2013-09-06 05:15 UTC by Saurabh
Modified: 2017-06-29 03:26 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Saurabh 2013-09-06 05:15:12 UTC
Step to reproduce:
1. Open XS
2. Create any android application
3. Run the application on DEBUG mode
4. Application deploys successfully
5. Stop the application
6. Run same application on RELEASE mode
7. Application deploys successfully
8. Stop the running application 
9. Again run the same application on DEBUG mode

Actual result:
When user again run the application on DEBUG mode, it gives "Deployment failed. FastDev directory creation failed" error and application does not deploy successfully on emulator/device.

Note: If we un-check 'Fast assembly deployment' from Options-> Android Build, then application deploys successfully.

Expected result:
User should able deploy application successfully with any error.

Environment info:
All Mac
Mono 3.2.2 ((no/a0fc6ba)
XS 4.1.10 (build 11)
X.Android 4.8.2-57

Regression Status: We getting same issue with stable X.Android 4.8.0-13-2 and Stable XamarinStudio-4.0.10-7-1
Comment 1 Jonathan Pryor 2014-07-28 17:38:49 UTC
The cause of the problem twofold:

1. Release builds do not generate the fast deployment directory; only Debug builds create it.

2. When Deploying an app from the IDE, various version checks are performed to see if the .apk actually needs to be reinstalled, so that .apk reinstall can be avoided if at all possible.

The problem here is that after installing the Release build and not changing anything in the project (no source code changes, etc.), the deployment process believes that the .apk doesn't need to be installed, and thus doesn't remove the Release build and replace it with a Debug build.

Without a Debug build, there is no fast deployment directory, causing deployment to fail.
Comment 2 David Karlaš 2015-06-24 00:46:03 UTC
*** Bug 19966 has been marked as a duplicate of this bug. ***
Comment 3 Chris Hardy [MSFT] 2017-06-29 03:26:23 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.