Comments (17)
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
from steps-gradle-runner.
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
from steps-gradle-runner.
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
from steps-gradle-runner.
The requested build URL.
Thanks
Ran
from steps-gradle-runner.
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
from steps-gradle-runner.
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:
- Android gradle plugin version: 3.6.3
- Gradle version: 6.1.1
- Finish successfully
https://app.bitrise.io/build/42cd173380b8a0e5#?tab=log
Second build setup:
- Android gradle plugin version: 4.0.1
- Gradle version: 6.1.1
- Fails with the above reported Gradle runner step NPE.
https://app.bitrise.io/build/af70dddbad79053f#?tab=log
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
from steps-gradle-runner.
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
from steps-gradle-runner.
Thanks @chaitanyatanna-bitrise!
Waiting for an update from the engineering team :)
from steps-gradle-runner.
Is there any update on the matter?
from steps-gradle-runner.
Hi @ran-haveshush-gett
I don't have an update currently.
I will have an update soon.
I will let you know
Thanks
Chaitanya
from steps-gradle-runner.
Any update on the issue?
from steps-gradle-runner.
Will it every be solved?
from steps-gradle-runner.
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
from steps-gradle-runner.
Any update on the issue?
from steps-gradle-runner.
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
from steps-gradle-runner.
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:
- you can skip running the cache pull step, by setting the step's run_if property to false (WORKFLOW EDITOR/bitrise.yml).
- you can remove the branch based cache archives on the project's settings page (if you upgrade AGP in a separate branch, and that branch has no cache archive yet than you need to clear the default branch's cache archive)
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)?
from steps-gradle-runner.
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.
from steps-gradle-runner.
Related Issues (20)
- Gradle 4.1 RC-1 fails to build HOT 9
- Generate dependencies map... has broken my job HOT 3
- #50 broke our build HOT 3
- What is the best way to not export anything? HOT 4
- Feature Request HOT 1
- package.json (No such file or directory) HOT 2
- A problem occurred starting process 'command '/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip'' HOT 10
- Can't specify multiple APK include filters HOT 7
- Android gradle version being used seems different then what is specified in build.gradle HOT 2
- Feature Request: Export Android Libraries ($BITRISE_AAR_PATH) HOT 2
- Is there any way to provide specific folder pattern to search for APK and AAB? HOT 7
- Step duplicates artifact files HOT 17
- "Could not GET" is matched case-insensitively HOT 14
- Cached builds failing with Gradle 6.5 HOT 3
- Task :mobile:crashlyticsUploadDistributionProductionRelease FAILED | gradle-runner@1 (exit code: 1) HOT 1
- Setting JAVA 11 doesn't change jdk used by Gradle Runner HOT 3
- gradle-runner 1.9.8 - Step always fail HOT 2
- Action Required: Fix Renovate Configuration
- mapping.txt remains empty after successful build HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steps-gradle-runner.