Hi!
Today I have a some problems with builds. I did not update gradle version since last successful build but today my build failed with exception and I have no idea how to fix it. Could you help me with this? org.gradle.api.GradleException: Could not load compiled classes for settings file '/bitrise/src/settings.gradle' from cache.
Hello Max, we are having a similar issue since yesterday and are working on finding out what’s up.
Our issue is in a single separate feature branch. Have you been able to solve it ?
This is quite strange, if we open a branch which root is the defective branch, change no relevant code and compile from there: it works fine. As a last resort we will discard the defective branch and use the new one but it is not the most elegant outcome.
@rovkinmax@mnogas We managed to solve the problem in quite a interesting way:
On your defective branch:
Modify gradle-wrapper.properties and build.gradle (project) to downgrade to a previous version of gradle. In our case gradle:4.0.0 and gradle-6.1.1-all.zip did the trick and commit+push
Launch a regular compilation and wait for it to finish
Modify both files to restore the previous versions you had and commit+push
Launch a regular compilation and wait for it to finish, it shall work now.
As we understand it, something was messed in bitrise+gradle binary caches and it was not possible to “reboot” it. This forced it to do so. I hope this will be helpful.