skip to Main Content

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.

BUILD FAILED in 1m 43s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

3

Answers


  1. 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 package

    Login or Signup to reply.
  2. Try to run these two commands:

    • flutter clean
    • flutter pub get
    Login or Signup to reply.
  3. Please try upgrading your flutter first using flutter upgrade, then try cleaning your enviroment using flutter clean and then installing all the packages again using flutter pub get. This might fix your issue, you can try debugging your application again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search