-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle build failed to produce #5
Comments
I had the same error. For me it was because I clicked the default run main.dart button to start the app. |
Hi @FunGuardian , thanks for the sharing. Is the exception occur everytime when you build or occasionally few times? The reason I asked this is because, I encounter before and although the exception was thrown, but the .apk file is successfully build in the project build output folder. |
This only occurs when not running the specified commands from the documentation:
|
If you are using VS Code, add these on your launch.json -> configurations
|
Hi @kirkcharlesniv , @rainerlonau , Thanks a lot for the comment and helps. This helps a lot. I will need to update the README on this. |
Hello @KenAragorn , if I might make a suggestion, on the Instead of:
maybe a more accurate documentation would be:
I'm only suggesting this because I too got stuck here for a few minutes until I realized what was wrong, and only now found this issue that clarifies the situation. |
Also, this configuration worked better for me (file {
"version": "0.2.0",
"configurations": [
{
"name": "Dev",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"program": "lib/main.dart",
"args": [
"--flavor",
"dev"
]
},
{
"name": "Prod",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"program": "lib/main_prod.dart",
"args": [
"--flavor",
"prod"
]
}
]
} |
Hi Ken,
just wanna thank you, this project is amazing
I just wanna share my problem with this project
I got this error
Exception: Gradle build failed to produce an .apk file. It's likely that this file was generated under
/home/myusername/Git/create_flutter_provider_app/build, but the tool couldn't find it.
And i do solve it with creating new flutter project then copy build.grade in app folder, and paste it to your amazing template
The text was updated successfully, but these errors were encountered: