Daniel Separe
Daniel Separe

Reputation: 423

How to Run with --stacktrace option to get the stack trace

I keep getting this error and i don't seem to find any help online. I am new to flutter and android studio. any help is well appreciated

Upvotes: 32

Views: 113823

Answers (5)

user22850912
user22850912

Reputation: 9

delete build.gradle it will work

Upvotes: -2

Jendorski Labs
Jendorski Labs

Reputation: 527

You can also use --verbose to get the full flutter stack trace. so for example:

flutter build apk --debug --verbose

Upvotes: 14

Mahdi-Malv
Mahdi-Malv

Reputation: 19250

You can set your android compiler to always run with --stacktrace modifier.

  • Head to Settings > Build, Execution, Deployment > Compiler
  • Add --debug or --info or --stacktrace (Or combination of them) to the Command line options

enter image description here

In your case clearing C:\Users\October Price\.gradle\caches folder and re-syncing the project might help.

Upvotes: 16

kuhnroyal
kuhnroyal

Reputation: 7563

You can try running the assembleDebug Gradle task manually.

cd android
./gradlew assembleDebug --stacktrace

But there could be something wrong with your configuration. Run flutter doctor -v and see if everything is setup correctly.

Otherwise you can try deleting the Gradle cache folder which seem to bet at C:\Users\October Price.gradle\caches.

Upvotes: 33

Nadeem Shaikh
Nadeem Shaikh

Reputation: 1208

You can use gradlew command to run from command line. to get more details of gradlew you can type gradlew --help. For further information regarding How to run from Command line follow this link.

Upvotes: 2

Related Questions