Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)FL

Lemmy based Flutter community.

Members
70
Posts
1
Active Today
1
Created
2 yr. ago
  • Flutter @lemm.ee
    jayemar @lemm.ee

    Script for Flutter Doctor to recognize Android Studio flatpak

    I install Android Studio via flatpak, and this can cause flutter doctor to not be able to determine the version or to not recognize the installation at all. I've managed a hacky fix for this by running a few commands that I run as a simple script that I'm sharing here. If you use this, just close Android Stuido after it is opened; it seems to just need to be opened once in order to be recognized by flutter doctor.

     sh
        
    #!/bin/bash
    
    flutter config --android-studio-dir=/var/lib/flatpak/app/com.google.AndroidStudio/current/active/files/extra/android-studio
    
    /var/lib/flatpak/app/com.google.AndroidStudio/current/active/files/extra/android-studio/bin/studio
    
    flutter config --android-studio-dir=""
    
    flutter doctor