Skip to content

error ADB1000: Xamarin.AndroidTools.AndroidDeploymentException: FailedToSynchronizeFastDevAssemblies ---> Mono.AndroidTools.AdbException: secure_mkdirs failed: Permission denied #5147

Closed

Description

@pmahend1

Steps to Reproduce

  1. Download Visual Studio 2019 Preview 8.3 or Visual Studio for Mac Preview 8.3
  2. Create Xamarin forms solution
  3. Target android project to API level 30 (Android 11) in both manifest and compilation levels
  4. Turn on Shared Debug runtime and Fast Debug options
  5. Build and try to deploy android project to Android 11 emulator

Could be related to #4996

Expected Behavior

Fast debug should work with new Xamarin android 11 changes

Actual Behavior

Not deploying app.

Version Information

Log File

adb log and msbuild.log shared over email to @dellis1972

Activity

  1. changed the title [-]error ADB1000: Xamarin.AndroidTools.AndroidDeploymentException: FailedToSynchronizeFastDevAssemblies ---> Mono.AndroidTools.AdbException: secure_mkdirs failed: Permission deniedMono.AndroidTools.AdbException: secure_mkdirs failed: Permission denied [/-] [+]error ADB1000: Xamarin.AndroidTools.AndroidDeploymentException: FailedToSynchronizeFastDevAssemblies ---> Mono.AndroidTools.AdbException: secure_mkdirs failed: Permission denied[/+] on Sep 23, 2020
  2. brendanzagaeski commented on Sep 23, 2020

    @brendanzagaeski
    Contributor

    I just thought of one idea for a first quick check that might be interesting to test if you get a chance. If you replace the Mono.Android.DebugRuntime-*.apk in the Visual Studio Preview installation with the versions from #4996 (comment) similar to how you tested before, does that by chance resolve the problem again?

    The default installation location for the Mono.Android.DebugRuntime-*.apk files to replace in the Preview version is:

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Xamarin\Android

    Thanks again!

  3. pmahend1 commented on Sep 23, 2020

    @pmahend1
    Author

    @brendanzagaeski Oh,Yeah. I was thinking the same, then thought they must be same. Will check and update here.

  4. pmahend1 commented on Sep 24, 2020

    @pmahend1
    Author

    @brendanzagaeski I did the same test by replacing APKs of Preview version. Same error is thrown while deploying.
    What is the PR #4690 about ? @dellis1972 mentioned about it in the last issue. I see it being open.

  5. dellis1972 commented on Sep 24, 2020

    @dellis1972
    Contributor

    @pmahend1 I don't think we can work around this. We are using the new api's on API 29+ devices, and if they are still throwing the error then running without the shared runtime will probably be the only option.

    PR #4690 is the new Fast deployment system. It does not have a shared runtime and does not use the external storage. So we won't hit these permissions problems. Its still a work in progress though.

  6. brendanzagaeski commented on Sep 25, 2020

    @brendanzagaeski
    Contributor

    Because it turned out that the candidate fix for #4996 did not consistently resolve the issue for the original reporter of that issue (@pmahend1, also the reporter of this issue), the issue has now been reopened. I will accordingly close this item as a duplicate to help consolidate further updates about the problem.

    Thanks again for reporting these issues and helping check the candidate fix, @pmahend1!

  7. brendanzagaeski commented on Sep 25, 2020

    @brendanzagaeski
    Contributor

    Duplicate of #4996

  8. removed this from the Under Consideration milestone on Sep 25, 2020
  9. added 6 commits that reference this issue on Oct 9, 2020
    1a382ee
    42de456
    d2d0179
    4b6fd6b
    9d4828a
    74485cc
  10. ghost locked as resolved and limited conversation to collaborators on Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions