i got this issue when i had android studio installed, i've been using android studio for a while before i got this issue. and i'm trying to uninstalling android studio to save some of my storage and manually install android emulator, still facing the same issue.
my flutter app scan keystore in the wrong directory when try to run in android emulator, my app keystore located at /Users/saidulumam/Documents/Projects/flutter/tome/android/~/Library/Android/Sdk/.android/debug.keystore
but it scans /Users/saidulumam/Documents/Projects/flutter/tome/android/app/~/Library/Android/Sdk/.android/debug.keystore
flutter create app_name
in this case im using name tome
cd tome
flutter run
Error result:
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:packageDebug' (type 'PackageApplication').
> File '/Users/saidulumam/Documents/Projects/flutter/tome/android/app/~/Library/Android/Sdk/.android/debug.keystore' specified for property 'signingConfig.signingConfigData.storeFile' does not exist.
* 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
BUILD FAILED in 32s
Running Gradle task 'assembleDebug'... 33.9s
Exception: Gradle task assembleDebug failed with exit code 1
flutter doctor:
➜ tome flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.0, on macOS 12.2.1 21D62 darwin-arm, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[✓] VS Code (version 1.64.2)
[✓] Connected device (1 available)
[✓] HTTP Host Availability
! Doctor found issues in 3 categories.
try this command for specifying android sdk path to flutter:
flutter config --android-sdk <path-to-your-android-sdk-path>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.