# Unable to build android app from git repository

**URL:** <https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994>\
**Category:** Development\
**Created:** [2016年十一月17日 04:07 UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994 "2016-11-17T04:07:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam\_beers](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Post date:** [2016年十一月17日 04:07 UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994/1 "2016-11-17T04:07:35Z")

</div>

I pulled down the DiscourseMobile from github. According to the github page, you run npm init and then react-native run-android. That didn’t work, but it did indicate that npm install is needed first. I did that and it downloaded a bunch of stuff. Then, I tried importing into Android Studio and installed on my device, but it failed with an error about BundledBatch. I click on “RELOAD” on the bottom and get another error about development server.

How do I get it to work from a build?

Attached screenshots of the errors.

 ![](https://global.discourse-cdn.com/meta/original/3X/d/8/d889b87fedbe63540f6ce2dba6dba2f35489beb7.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/b/a/ba3a3a1acec60ffec537abe2112c0ccc1f7f68c2.png)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年十一月17日 04:10 UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994/2 "2016-11-17T04:10:30Z")

</div>

Are we actually supporting this @sam?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016年十一月17日 04:27 UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994/3 "2016-11-17T04:27:31Z")

</div>

I [amended the readme](https://github.com/discourse/DiscourseMobile) to cover this.

---

<div class="post-metadata">

**Author:** ![adam\_beers](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Post date:** [2016年十一月17日 04:50 UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994/4 "2016-11-17T04:50:11Z")

</div>

What if I’m not using an emulator? What if I want to build and run on an actual device? Is there an extra step or config needed for that?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016年十一月17日 04:52 UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994/5 "2016-11-17T04:52:08Z")

</div>

same instructions hold…
