Coder Social home page Coder Social logo

Comments (8)

DmitriiBobreshev avatar DmitriiBobreshev commented on September 26, 2024

Hi @TteamMBK, the error usually indicates that the called program returned exit code 1.
In your case, gradlew returned exit code 1 and probably there is some error during the execution.
Could you please share a full log with diagnostic logs enabled?

from azure-pipelines-tasks.

TteamMBK avatar TteamMBK commented on September 26, 2024

error logs.txt
Here is the txt file of logs

from azure-pipelines-tasks.

DmitriiBobreshev avatar DmitriiBobreshev commented on September 26, 2024

Based on the logs I see that the task :eventoffers:kaptReleaseKotlin was failed with exception

2024-05-21T10:24:54.6902360Z e: java.lang.IllegalStateException: failed to analyze: com.sun.tools.javac.code.ClassFinder$BadClassFile: bad class file: %fileName% (/io/realm/MutableRealmInteger.class)
2024-05-21T10:24:54.6927810Z   unable to access file: java.nio.file.ClosedFileSystemException
2024-05-21T10:24:54.7167060Z   Please remove or make sure it appears in the correct subdirectory of the classpath. 

I also see that in the pipeline jdk version is 1.11 but in the yml you set 1.8. Is your project should be built via 1.11 and gradle 6.5? Are you able to build it locally with same setup?

from azure-pipelines-tasks.

TteamMBK avatar TteamMBK commented on September 26, 2024

Hi @DmitriiBobreshev

I tried your suggestion and changed jdk version in YML file from 1.8 to 1.11, then pushed code and run pipeline.
but still (Android prod) pipeline got failed.

Yes, we are able to build our project locally.

from azure-pipelines-tasks.

DmitriiBobreshev avatar DmitriiBobreshev commented on September 26, 2024

@TteamMBK, Thanks for the answer, from what we see, the task wasn't changed but the images chagned recently, specifically version of kotlin was changed from 1.9.23 to 1.9.24 on almost all images. Could you please try to test it with new version of Kotlin and create an issue in runner-images repository?

from azure-pipelines-tasks.

TteamMBK avatar TteamMBK commented on September 26, 2024

Could you please elaborate a bit-

  1. do you want me to upgrade kotlin version of the code ?
  2. How to create issue in runner-images repository

from azure-pipelines-tasks.

DmitriiBobreshev avatar DmitriiBobreshev commented on September 26, 2024

@TteamMBK,

  1. It would be great if you could try to build the project with the same setup as on ms-hosted agent where the Kotlin version is 1.9.24-release-822.
  2. The runner images repository is located on GHl, this repo is for ms-hosted images. As I suspect that something may be incorrect with a software and not with the task, this might help to find a root cause.

from azure-pipelines-tasks.

TteamMBK avatar TteamMBK commented on September 26, 2024

@DmitriiBobreshev

For #1. We changed the version of pipeline same as of our Android studio but still getting the same error

image

from azure-pipelines-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.