Search code examples
androidreact-nativecontinuous-integrationcontinuous-deploymentbitrise

CI/CD BitRise React Native Android Build Failing


Facing issue while build on BitRise.io

I have a React Native Project which builds successfully on local. Using BitRise.io for CI CD. Added App and provided all the essential information and keystore file as well. Followed their getting started guide and everything they'll need is in place.

Tried to build multiple times but getting this error :

Failed to open project, error: no build.gradle or build.gradle.kts file found in (/Users/vagrant/git)
| x | android-build@0 (exit code: 1)

Not sure why they are not able to find build.gradle.


Solution

  • There was an issue with BitRise App Setup & Configuration while adding React Native App. Although I provided Android Project Path, Module & Variant, It only added in their variables and did not add it to inputs of Build Step, I had to manually add this inside BitRise.Yml to make it work.

    - android-build@0.10.0:
         inputs:
            - project_location: "$PROJECT_LOCATION"
            - module: "$MODULE"
            - variant: "$VARIANT"