cannot find a java se sdk installed at path_flutter 安装以及遇到的坑

flutter 安装遇到的坑

1.网站和教程

也可以看这个

2.Android studio 找不到 flutter 插件

3.Android SDK file not found

flutter config --android-sdk /Users/sunchengxiu/Library/Android/sdk/

4.Android SDK file not found

打开 Android studio,会提示安装,慢慢等待吧。

5.Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

执行命令:flutter doctor --android-licenses

一直y就行

6. sudo gem install cocoapods

sudo gem install cocoapods

Password:

Fetching: concurrent-ruby-1.1.6.gem (100%)

Successfully installed concurrent-ruby-1.1.6

Fetching: httpclient-2.8.3.gem (100%)

ERROR: While executing gem ... (Gem::FilePermissionError)

You don't have write permissions for the /usr/bin directory.

➜ ~ sudo gem install cocoapods

ERROR: While executing gem ... (Gem::FilePermissionError)

你可能感兴趣的:(cannot,find,a,java,se,sdk,installed,at,path)