実現したいこと
- 新しいPC(M1Mac)で既存のFlutterプロジェクトをビルドしたい
前提
Flutterを用いて、モバイルアプリを開発しています。
以前使っていたPC(Intel Core i5)から、新しいPC(M1)へ既存のFlutterプロジェクトを移行して、
VS Codeのターミナルから"flutter build apk"をすると、以下のエラーが返ってきました
※移行後にそもそもpub getができなかったので、build apkを行う前にintl: ^0.17.0をintl: ^0.18.0に変更しています
発生している問題・エラーメッセージ
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mapReleaseSourceSetPaths'. > Error while evaluating property 'extraGeneratedResDir' of task ':app:mapReleaseSourceSetPaths' > Failed to calculate the value of task ':app:mapReleaseSourceSetPaths' property 'extraGeneratedResDir'. > Querying the mapped value of provider(java.util.Set) before task ':app:processReleaseGoogleServices' has completed is not supported * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org
試したこと
- flutter clean 、flutter pub get
- JDK、kotlin、gradleのバージョン変更(新しいPCでも新規のFlutterプロジェクトの作成、android端末へのビルドはできるので、エラーが発生している既存プロジェクトのJDK、kotlin、gradleのバージョンをビルドが成功するプロジェクトのバージョンに変更したりしました)
補足情報(FW/ツールのバージョンなど)
新しいPC(M1Mac)のflutter doctor
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4 22F66 darwin-arm64, locale ja-JP) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.79.1) [✓] Connected device (3 available) [✓] Network resources
以前使っていたPC(Intel Core i5)のflutter doctor
[✓] Flutter (Channel stable, 3.7.10, on macOS 12.6.6 21G646 darwin-x64, locale ja-JP) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc2) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.79.1) [✓] Connected device (2 available) [✓] HTTP Host Availability
個人的には色々調べたのですが、お手上げ状態ですので、お力を貸していただけると助かります。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。