# Android build issue regarding Gradlew Tasks

**URL:** <https://discuss.bitrise.io/t/android-build-issue-regarding-gradlew-tasks/13284>\
**Category:** Builds\
**Created:** [June 10, 2020, 1:17pm UTC](https://discuss.bitrise.io/t/android-build-issue-regarding-gradlew-tasks/13284 "2020-06-10T13:17:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![walkaboutsupport](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@walkaboutsupport](https://discuss.bitrise.io/u/walkaboutsupport)\
**Post date:** [June 10, 2020, 1:17pm UTC](https://discuss.bitrise.io/t/android-build-issue-regarding-gradlew-tasks/13284/1 "2020-06-10T13:17:21Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I recently updated my RN app from 0.59.X to 0.62.2. Got everything running locally and am able to build by running `cd android` and then `./gradlew app:assembleRelease`. One odd thing about running it locally, if I try `./android/gradlew app:assembleRelease` it doesnt work, giving the error `project 'app' not found in root project 'XXXXXX'.`

With that said when I run `./gradlew tasks` locally I don’t see assembleRelease in the list of tasks yet it works when I run it..

Either way, I am trying to now get this running on bitrise but am running into similar issues. I have tried both the Android Build step and the Gradle Runner with no luck.

When running the Android Build app:assembleRelease I get the error `Failed to find buildable variants, error: variant: assembleRelease not found in any module`.

So in a previous script step I added `./android/gradlew tasks` to view my tasks and they do not match my local tasks and are very limited:

* * *

Tasks runnable from root project

* * *

Build Setup tasks

* * *

init - Initializes a new Gradle build.

wrapper - Generates Gradle wrapper files.

Help tasks

* * *

buildEnvironment - Displays all buildscript dependencies declared in root project ‘git’.

components - Displays the components produced by root project ‘git’. [incubating]

dependencies - Displays all dependencies declared in root project ‘git’.

dependencyInsight - Displays the insight into a specific dependency in root project ‘git’.

dependentComponents - Displays the dependent components of components in root project ‘git’. [incubating]

help - Displays a help message.

model - Displays the configuration model of root project ‘git’. [incubating]

outgoingVariants - Displays the outgoing variants of root project ‘git’.

projects - Displays the sub-projects of root project ‘git’.

properties - Displays the properties of root project ‘git’.

tasks - Displays the tasks runnable from root project ‘git’.

So not exactly sure where i’m going wrong with gradle but looking for any advice..

## Environment:

Happens on Bitrise XCode 11.5.X on MacOS 10.15.4 Catalina

**Which build Step causes the issue and which version of the step?**

Android Build 0.10.1

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : YES
- _Does the issue happen sporadically, or every time?_ : Every time
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : After updating RN

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [June 25, 2020, 9:10am UTC](https://discuss.bitrise.io/t/android-build-issue-regarding-gradlew-tasks/13284/2 "2020-06-25T09:10:33Z")

</div>

Hi @walkaboutsupport!

Sorry about the delay! Are you sure your module is called `assembleRelease`? What happened when you used the Gradle Runner to run that task, can you include a build URL about that?

I’m not 100% sure how React Native handles this, but the default variant should be simply `release`, and `assembleRelease` is a the Gradle command used to build the release variant.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [July 25, 2020, 9:10am UTC](https://discuss.bitrise.io/t/android-build-issue-regarding-gradlew-tasks/13284/3 "2020-07-25T09:10:34Z")

</div>

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