FAILURE: Build failed with an exception.
-
Where:
Build file ‘C:UsersAdminOneDriveDocumentosflutter-projectshello_worldandroidbuild.gradle’ line: 15 -
What went wrong:
Could not compile build file ‘C:UsersAdminOneDriveDocumentosflutter-projectshello_worldandroidbuild.gradle’.
startup failed:
build file ‘C:UsersAdminOneDriveDocumentosflutter-projectshello_worldandroidbuild.gradle’: 15: token recognition error at: ‘#’ @ line 15, column 35.
keyPassword = "qwert%$#@!"
^
1 error
2
- 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 1m 43s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
3
Answers
have you clean your gradle with
./gradlew clean
, run this command in your android directory project and then try./gradlew build
, if build is unsuccessful then try to looking at the log and see what’s wrong with your project. based on my previous experience the problem is mostly from the outdated import, if that’s the problem then try to update your packageTry to run these two commands:
flutter clean
flutter pub get
Please try upgrading your flutter first using
flutter upgrade
, then try cleaning your enviroment usingflutter clean
and then installing all the packages again usingflutter pub get
. This might fix your issue, you can try debugging your application again.