Skip to content

Commit a53991d

Browse files
committed
fix: sdkのパスが読み込めなかったので修正
1 parent edd0733 commit a53991d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/android_setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euo pipefail
33

44
echo "「Android」のセットアップを開始しました"
55

6+
SDK_DIR="/opt/homebrew/share/android-commandlinetools"
67
CMDLINE_TOOLS_DIR="/opt/homebrew/share/android-commandlinetools/cmdline-tools/latest"
78

89
if [ -d "$CMDLINE_TOOLS_DIR" ]; then
@@ -19,4 +20,7 @@ fi
1920
# Androidのライセンスに同意
2021
yes | flutter doctor --android-licenses || true
2122

23+
# FlutterにSDKパスを教える
24+
flutter config --android-sdk "$SDK_DIR"
25+
2226
echo "「Android」のセットアップが完了しました"

0 commit comments

Comments
 (0)