使用IntelliJ IDEA编辑flutter安卓代码

来源:stackoverflow.com 更新时间:2023-05-25 21:55

To configure the location of the Android SDK:

  1. In Preferences > Plugins, enable Android Support if you haven’t already.
  2. Right-click the android folder in the Project view, and select Open Module Settings.
  3. In the Sources tab, locate the Language level field, and select level 8 or later.
  4. In the Dependencies tab, locate the Module SDK field, and select an Android SDK. If no SDK is listed, click New and specify the location of the Android SDK. Make sure to select an Android SDK matching the one used by Flutter (as reported by flutter doctor).
  5. Click OK.