Closed Jay-57blocks closed 6 months ago
Hello! In your config, for your executor you are specifying the default
tag. As a first step I think specifying an image version would maybe solve your issue. If you take a look at this community post: https://discuss.circleci.com/t/android-images-2024q2-update/50872 that has details of what's changed in the latest image, which you are using. You can also check our developer hub image registry for details of the tags available. Does this help?
@rosieyohannan I successfully executed the task using docker - image. I want to know how it is different from executor: settings. Please help me turn off this problem. Thank you
distribute_android:
docker:
# Set to Gradle 8.5
# https://circleci.com/developer/images/image/cimg/android
- image: cimg/android:2023.12.1
SO this part of your original config:
version: 2.1
orbs:
android: circleci/android@2.5.0
flutter: circleci/flutter@2.0.4
jobs:
distribute_android:
executor:
name: android/android-machine
resource-class: large
tag: default
shows you are using the machine executor that's defined in the android orb - more info here
Using a machine executor means you are building using a virtual machine. Using Docker means you are building using a Docker container.
So when you found things weren't working you were using the machine image with the default tag which is 2024.04.1
info here - this specifies Gradle 8.7.
But you found things are working using Docker because you're specifying an older image, 2023.12.1, which includes Gradle 8.5: https://hub.docker.com/layers/cimg/android/2023.12.1/images/sha256-de64e9240576fe5a030fe6129832c9444643598854801f66708a7ad6238858d7?context=explore
Does this help?
@rosieyohannan I see, thank you, I will close the question
Description
My CI used to work normally, but yesterday I discovered that it was built incorrectly. The CI used to build it using Gradle 8.5, but now he uses the latest Gradle 8.7 to build it, so an error occurred
I want to know how to set Gradle to version 8.5,and set Java version, the Java version used by CI is too new
Local computer environment (flutter doctor -v): On my computer, everything is fine
gradle-wrapper.properties
build.gradle
CI environment (flutter doctor -v):
config.yml