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

build-config
react-native
android
#1

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 |
±–±--------------------------------------------------------------±---------+

0 Likes

#2

Hi @workninja,

Thank you for reaching out.

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

0 Likes

#3

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

0 Likes

#4

Hi @workninja,

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

0 Likes

#5

It is an regular React-Native Project

0 Likes

#6

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.

0 Likes

#7
0 Likes

closed #8

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

0 Likes