Repository: flutter
Issue: Android build fails on Windows when project is on non-NTFS drive
Labels: c: crash,platform-android,tool,platform-windows,d: api docs,a: first hour,P2,team-android,triaged-android

Hi, right next a brand new flutter app creation, trying to run it I get the following error.
This is some of the latest logs of `flutter run --verbose`
```
[        ] > Task :app:mergeDebugAssets
[+29997 ms] > Task :app:copyFlutterAssetsDebug
[+1399 ms] > Task :app:generateDebugResValues
[   +1 ms] > Task :app:generateDebugResources
[+10898 ms] > Task :app:createDebugCompatibleScreenManifests
[   +1 ms] > Task :app:extractDeepLinksDebug
[+1198 ms] > Task :app:processDebugMainManifest
[ +500 ms] > Task :app:mergeDebugResources
[ +200 ms] > Task :app:processDebugManifest
[  +99 ms] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[   +1 ms] > Task :app:javaPreCompileDebug
[  +99 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ +199 ms] > Task :app:compressDebugAssets FAILED
[ +899 ms] > Task :app:checkDebugDuplicateClasses
[   +1 ms] > Task :app:processDebugManifestForPackage
[  +99 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[        ] Execution failed for task ':app:compressDebugAssets'.
[        ] > A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
[        ]    > G:\git\flutter_app\build\app\intermediates\merged_assets\debug\out
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[        ] * Get more help at https://help.gradle.org
[        ] BUILD FAILED in 4m 11s
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings
[        ] 18 actionable tasks: 18 executed
[ +430 ms] Running Gradle task 'assembleDebug'... (completed in 252,7s)
[   +4 ms] Exception: Gradle task assembleDebug failed with exit code 1
[   +1 ms] "flutter run" took 253.418ms.
[   +3 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:12:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:655:9)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1185:12)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1037:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:152:19)
           <asynchronous suspension>
           #5      AppContext.run (package:flutter_tools/src/base/context.dart:151:12)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:152:19)
           <asynchronous suspension>
           #9      AppContext.run (package:flutter_tools/src/base/context.dart:151:12)
           <asynchronous suspension>
           #10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:239:5)
           <asynchronous suspension>
           #11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #12     run.<anonymous closure> (package:flutter_tools/runner.dart:60:12)
           <asynchronous suspension>
           #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:152:19)
           <asynchronous suspension>
           #14     AppContext.run (package:flutter_tools/src/base/context.dart:151:12)
           <asynchronous suspension>
           #15     runInContext (package:flutter_tools/src/context_runner.dart:77:10)
           <asynchronous suspension>
           #16     main (package:flutter_tools/executable.dart:92:3)
           <asynchronous suspension>
           
           
[ +254 ms] ensureAnalyticsSent: 251ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[   +4 ms] Shutdown hooks complete
[   +1 ms] exiting with code 1
```
Here's my `flutter doctor -v` output:
```
[√] Flutter (Channel dev, 1.27.0-4.0.pre, on Microsoft Windows [Versione 10.0.19042.804], locale it-IT)
    • Flutter version 1.27.0-4.0.pre at G:\SDKs\flutter
    • Framework revision f8cd24de95 (7 days ago), 2021-02-16 11:24:17 -0800
    • Engine revision 1d537824d6
    • Dart version 2.13.0 (build 2.13.0-30.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\Manuel\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2020.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2020.2
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 202.6397.47

[√] VS Code (version 1.53.2)
    • VS Code at C:\Users\Manuel\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.19.0

[√] Connected device (3 available)
    • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86    • Android 9 (API 28) (emulator)
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 88.0.4324.182
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 88.0.705.74

• No issues found!
```
I tried modifying `gradle-wrapper.properties` `distributionUrl` to `https\://services.gradle.org/distributions/gradle-6.5.1-all.zip`
and `classpath 'com.android.tools.build:gradle:4.1.0'` under `build.gradle`.
But nothing is helping it.

My output of `./gradlew -v`:
```
------------------------------------------------------------
Gradle 6.5.1
------------------------------------------------------------

Build time:   2020-06-30 06:32:47 UTC
Revision:     66bc713f7169626a7f0134bf452abde51550ea0a

Kotlin:       1.3.72
Groovy:       2.5.11
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          1.8.0_221 (Oracle Corporation 25.221-b11)
OS:           Windows 10 10.0 amd64
```