# Cannot build Android app on Linux

**URL:** <https://forum.mattermost.com/t/cannot-build-android-app-on-linux/8765>\
**Category:** Troubleshooting\
**Created:** [January 6, 2020, 11:36am UTC](https://forum.mattermost.com/t/cannot-build-android-app-on-linux/8765 "2020-01-06T11:36:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anta40](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/anta40/32/3453_2.png) [@anta40](https://forum.mattermost.com/u/anta40)\
**Post date:** [January 6, 2020, 11:36am UTC](https://forum.mattermost.com/t/cannot-build-android-app-on-linux/8765/1 "2020-01-06T11:36:45Z")

</div>

Hi,

I’m following the steps on this page to build Mattermost Android app on Linux:  
[https://developers.mattermost.com/contribute/mobile/build-your-own/preparation/](https://developers.mattermost.com/contribute/mobile/build-your-own/preparation/)

Yes, I already had Android SDK, npm, ruby etc installed. When running:

```auto
make build-android

```

I got this error:

> mattermost-mobile@1.27.0 check /home/anta40/work/mattermost-mobile  
> eslint --ignore-path .gitignore --ignore-pattern node\_modules --quiet .
> 
> mkdir -p tmp  
> cp assets/base/i18n/en.json tmp/en.json  
> mkdir -p tmp/fake-webapp-dir/i18n/  
> echo ‘{}’ \> tmp/fake-webapp-dir/i18n/en.json  
> npm run mmjstool – i18n extract-mobile --webapp-dir tmp/fake-webapp-dir --mobile-dir .
> 
> mattermost-mobile@1.27.0 mmjstool /home/anta40/work/mattermost-mobile  
> mmjstool “i18n” “extract-mobile” “–webapp-dir” “tmp/fake-webapp-dir” “–mobile-dir” “.”
> 
> diff tmp/en.json assets/base/i18n/en.json  
> rm -rf tmp  
> React Native packager server already running  
> Building Android app  
> Could not find aws-partitions-1.258.0 in any of the sources  
> Run `bundle install` to install missing gems.  
> make: \*\*\* [Makefile:183: build-android] Error 7  
> anta40@stalingrad:~/work/mattermost-mobile$

Running

> bundle install

Gives this error:

> Could not locate Gemfile

How to fix this?

---

<div class="post-metadata">

**Author:** ![robcohen](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@robcohen](https://forum.mattermost.com/u/robcohen)\
**Post date:** [April 9, 2020, 8:56pm UTC](https://forum.mattermost.com/t/cannot-build-android-app-on-linux/8765/2 "2020-04-09T20:56:44Z")

</div>

I am having the exact same problem. I have to keep running `make android-unsigned` over and over again then gem install -v ‘=’. No idea how to install all the dependencies. Yes I tried both make pre-build and pre-run.

Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![robcohen](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@robcohen](https://forum.mattermost.com/u/robcohen)\
**Post date:** [April 9, 2020, 9:02pm UTC](https://forum.mattermost.com/t/cannot-build-android-app-on-linux/8765/3 "2020-04-09T21:02:47Z")

</div>

I figured it out, you need to cd into ./fastlane THEN run bundle install

Would have been nice to know that earlier.
