Closed ran-haveshush-gett closed 3 years ago
Hi @ran-haveshush-gett Thank you for reaching out to Bitrise. May I know what version of Java you are running with the gradle 4.0.0+ version. Also, can you enable support access and send the build URL so we can take a look?
Thanks Chaitanya
Hi @chaitanyatanna-bitrise First of all thanks for your quick response, that is much appreciated.
The Java version used is 1.8
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
Sure, what is the process / steps to "enable support access"? If this is the way to enable Bitrise Support User for the app? It is enabled.
Thanks Ran
Hi @ran-haveshush-gett Thank you for the comment. I appreciate it as well. Yes, that is the correct way to enable support access. Now, can you please send the build URL so that I can take a look at the issue?
Thanks Chaitanya
Hi @ran-haveshush-gett Thank you for being patient. So this is only happening if you are upgrading the Gradle version to 4.0.0+? When did this start happening? What happens if you use the Gradle version Lower than 4.0.0? The error in the build is also throwing a NullPointerException error. Can you try to clean and rebuild your project on your IDE and also clear the cache on the browser and then build the app on Bitrise again?
Thanks Chaitanya
Hi @chaitanyatanna-bitrise
Q: So this is only happening if you are upgrading the Gradle version to 4.0.0+? A: Yes, not Gradle but Android gradle plugin to version to 4.0.0+.
Q: When did this start happening? A: When we tried to upgrade Gradle Android plugin version to 4.0.0+. We have reverted back to version 3.6.3, in order for Bitrise builds to finish successfully.
Q: What happens if you use the Gradle version Lower than 4.0.0? A: The Gradle version isn't the problem. Bitrise build finishes successfully with Gradle version 6.1.1, and Android Gradle plugin version < 4.0.0.
Q: The error in the build is also throwing a NullPointerException error. A: This NPE only happens when Android Gradle plugin version is upgraded to 4.0.0+, only on Bitrise builds, but not on local builds.
Q: Can you try to clean and rebuild your project on your IDE and also clear the cache on the browser and then build the app on Bitrise again? A: Tried it already. But I will try it again and report back.
Reporting back!
First build setup:
Second build setup:
BTW, running gradle wrapper (./gradlew) locally works just fine with Android Gradle plugin version 4.0.1 and Gradle version 6.1.1.
Thanks for the help, Ran
Thank you for the update @ran-haveshush-gett Thank you for being patient. I am going to report this to our engineering team for the fix and I will report back with the update.
Thanks Chaitanya
Thanks @chaitanyatanna-bitrise!
Waiting for an update from the engineering team :)
Hi @chaitanyatanna-bitrise,
Is there any update on the matter?
Hi @ran-haveshush-gett I don't have an update currently. I will have an update soon. I will let you know
Thanks Chaitanya
Hi @chaitanyatanna-bitrise
Any update on the issue?
Hi @chaitanyatanna-bitrise,
Will it every be solved?
Hi @ran-haveshush-gett Sorry for the late reply on the issue. I just checked the ticket and the engineers are still working on your issue. I will let you know as soon as I have an update from them.
Thanks Chaitanya
Hi @chaitanyatanna-bitrise
Any update on the issue?
Hi @ran-haveshush-gett Unfortunately, I still don't have an update on this issue. May I know on which stacks you are running your builds?
Thanks Chaitanya
Hi @ran-haveshush-gett , sorry for the late response!
I started to investigate this issue, but can not reproduce it for now.
1, Could you please send meg a build URL, which does not use cache (and the Android Gradle Plugin is updated)?
there a few options to run a build without cache:
3, If possible could you please try using the latest stable Android Gradle Plugin (with major version 4, 4.0.2 is the latest at the moment and it would great if you could test the latest (4.1.1 at the moment) too)
4, If possible could you please test if it is working on macOS stacks (WORKFLOW EDITOR/Stack)?
Closing as we did not receive a reply - @ran-haveshush-gett please let us know if we can help with anything by opening a new issue.
While trying to upgrade:
The below exception fails the build.
Thanks for the help.