-
Notifications
You must be signed in to change notification settings - Fork 144
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
unable to build simple android project #350
Comments
Issue: Gradle Daemon Crashing and Slow Builds in Bitbucket PipelineI am using the Docker image
This issue consistently occurs during the Gradle task execution, with no clear stack trace or debug information provided. The pipeline ends with a |
@dhruvin207 Are you found a solution ? |
The source problem appeared as a warning when you create your app - android build can only run with java 17, while the image has java 21. Markers are mine. $ flutter create -t app --platform android test_app In order to run your application, type: $ cd test_app Your application code is in test_app/lib/main.dart. The configured version of Java detected may conflict with the Gradle version in your new Flutter app. To keep the default AGP version Gradle version 8.3, download a compatible Java version flutter config --jdk-dir=<JDK_DIRECTORY> ... $ $ apt install openjdk-17-jre openjdk-17-jdk android docs also very clear about it - only openjdk-17 is supported @fkorotkov can you verify this and downgrade java versions for next releases? |
I'm running in to the same issue. It looks like the Android 34 image on which this is based was updated to use openjdk-21 here: cirruslabs/docker-images-android@90d9542 |
Hello,
I'm totally new to this so please cut me some slack.
I run this image, create project with
then cd into it and run
this is what I get
what can I do to solve this?
The text was updated successfully, but these errors were encountered: