Repository: flutter
Issue: Confusing error message from flutter tools when verifying a broken Android Studio version.
Labels: tool,a: first hour,a: quality,P2,team-tool,triaged-tool

#69517  Steps to Reproduce

1. Create a broken Android Studio client with missing permissions to the Java version.
2. Run flutter doctor
You will get the error
```
null. The flutter tool cannot access the file or directory.
Please ensure that the SDK and/or project is installed in a location that has
read/write permissions for the current user.
```
This is related to the following line in flutter_tools https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/android/android_studio.dart#L355

The message would be clearer if we instead indicated the specific directory with invalid permissions so a user could fix it `/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java`

Fyi @jonahwilliams 

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel unknown, 1.24.0-8.0.pre.180, on Mac OS X 10.15.7 19H2 darwin-x64,
    locale en-US)
    • Flutter version 1.24.0-8.0.pre.180 at /Users/jacobr/git/flutter/2/flutter
    • Framework revision 84a8bd3f5a (6 hours ago), 2020-11-10 05:21:14 -0800
    • Engine revision e50ac2c552
    • Dart version 2.12.0 (build 2.12.0-31.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/jacobr/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2-dev.6
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 44.0.4-dev.4
    • Dart plugin version 193.6015.53

[✓] VS Code (version 1.49.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (4 available)
    • iPhone 8 (mobile) • 5F030C1F-C6D3-4CEF-BCCB-1B8D1D69A5E7 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)
    • macOS (desktop)   • macos                                • darwin-x64     • Mac
      OS X 10.15.7 19H2 darwin-x64
    • Web Server (web)  • web-server                           • web-javascript •
      Flutter Tools
    • Chrome (web)      • chrome                               • web-javascript •
      Google Chrome 86.0.4240.193

• No issues found!
```