Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find bundled Java version

I am working with flutter and the cmd shows that I have an error when I try to run flutter doctor

This is the cmd's results :

   [[√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.18362.476], locale en-US)
    
    [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    [!] Android Studio (version 3.3)
        X Unable to determine bundled Java version.
    [√] Android Studio (version 3.5)
    [√] VS Code (version 1.40.1)
    [√] Connected device (1 available)
like image 941
Lola Avatar asked Nov 06 '22 11:11

Lola


1 Answers

Two issues from your log here. First, to enable the Android SDK you have to read/accept license agreements. You need to do: flutter doctor --android-licenses in terminal (or equiv if not Mac) and then follow the prompts to sign the licenses.

If you haven't set up the Flutter SDK, you can follow the instructions here (step 3 shows how to enable Flutter permanently in your path which I strongly recommend. This will allow you to run Flutter commands such as flutter clean, flutter doctor, etc.).

For the second issue, this is usually a problem with an outdated Android Studio implementation. You can try to delete and re-install Android Studio, or see if you can upgrade it: Android Studio/Check for Updates.

like image 68
Oprimus Avatar answered Nov 14 '22 21:11

Oprimus