Flutter does not find android sdk

前端 未结 25 2190
花落未央
花落未央 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:16

    What worked is Tools->Flutter->open Android module in Android studio, For me plugin flutter_email_sender was giving this error, so I copied local.properties file into it and the build become successful.

    Or Open Terminal Run touch ~/.bash_profile; open ~/.bash_profile

    export ANDROID_HOME=/Users//Library/Android/sdk
    export ANDROID_SDK_ROOT=/Users//Library/Android/sdk
    export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
    

    Run source ~/.bash_profile in android studio terminal

提交回复
热议问题