Flutter does not find android sdk

前端 未结 25 2243
花落未央
花落未央 2020-12-02 09:29

I just tried intalling flutter and since I already had android studio and the android sdk installed I just followed the installation of flutter. Here is my problem: When I r

25条回答
  •  余生分开走
    2020-12-02 10:30

    For mac users,

    It was working fine yesterday, now the hell broke. I was able to fix it.

    My issue was with ANDROID_HOME

    // This is wrong. No idea how it was working earlier.
    ANDROID_HOME = Library/Android/sdk 
    

    If you did the same, change it to:

    ANDROID_HOME = /Users/rana.singh/Library/Android/sdk 
    

    .bash_profile has

    export ANDROID_HOME=/Users/rana.singh/Library/Android/sdk
    export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
    

提交回复
热议问题