Failed to open project, error: no build.gradle or build.gradle.kts file found in (/Users/vagrant/git)

I want to generate apk from my react native project, but getting this in android build

±-----------------------------------------------------------------------------+

| (4) android-build@0 |
±-----------------------------------------------------------------------------+
| id: android-build |
| version: 0.10.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2020-06-11T08:25:37Z |
±-----------------------------------------------------------------------------+
| |
Configs:

  • ProjectLocation: /Users/vagrant/git
  • APKPathPattern:
  • AppPathPattern: /build/outputs/apk/.apk
    /build/outputs/bundle/.aab
  • Variant: release
  • Module: app
  • BuildType: apk
  • Arguments:
  • CacheLevel: only_deps

- DeployDir: /Users/vagrant/deploy
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) | 7.04 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: …thub.com/bitrise-steplib/bitrise-step-android-build/issues |
| Source: https://github.com/bitrise-steplib/bitrise-step-android-build |
±–±--------------------------------------------------------------±---------+

Hi @workninja,

Thank you for reaching out.

Can you please share a build link and enable support access in your project settings?

Yes, I enabled the Bitrise Support in the setting.
That’s the app link => https://app.bitrise.io/app/c4122876ad862152#/

Hi @workninja,

Is this an Expo React Native project or a regular RN project?

It is an regular React-Native Project

Hi @workninja,

Can you please share your package.json file in a https://gist.github.com?

You need to generate the native project so that this file will exist. Currently it does not because only your JS/TS code is there. If you generate that project before the android build step, it should work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.