> For the complete documentation index, see [llms.txt](https://leaestudio.gitbook.io/city-guide-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leaestudio.gitbook.io/city-guide-document/config-android-app.md).

# 3. Setting up the Android app

Setting up steps for the Trid - City Guide Android app

### Prerequisites

{% hint style="info" %}

* A device running Android 5.0 or newer
* The latest version of Android Studio
  {% endhint %}

{% hint style="info" %}
Try to place the project file as close to root (D:/) as possible as windows has a path character limit of 240chars. So, if you get the error:"Failed to crunch file...", reduce the path length.

Ex: D:\Projects\YourProject
{% endhint %}

### **Importing and running**

1. Open Android Studio and click 'open an existing Android Studio project'.

![Android Studio](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LRSQRI5vSUkZiQQK840%2F-LRSSg1AbbWasAJYMZkG%2FScreenshot%20at%20Nov%2016%2023-59-24.png?alt=media\&token=afeb9d61-31fa-4e1f-960a-d06877e7a921)

{% hint style="info" %}
Make sure that you have installed Android SDK Tools, Android SDK Platform-tools, Android SDK Build-tools, Android Support Repository, Android Support Library and Google Play services.
{% endhint %}

\
2\. Choose the 'Trid-CityGuide' folder and click "Open"&#x20;

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LRUvZoacRAkzdEXbHV7%2F-LRUyLhw9gkD9TBdXEXC%2FScreen%20Shot%202018-11-17%20at%2011.34.33%20AM.png?alt=media\&token=647ef021-67bc-42ad-9401-60fc1899ee54)

3\. Go to your Firebase Console and download the 'google-services.json' file and replace the placeholder in app/google-services.json. If you skip this step you will encounter an error during compile time.

![google-services.json file ](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LRV-d0JWQVQ4JUFC6qY%2F-LRV1FkeCBwlffFoWLbJ%2FScreenshot%20at%20Nov%2017%2011-53-17.jpg?alt=media\&token=d1a2d8a7-6727-4b7e-a83e-a33497ba12ef)

4\. Press the Play button to test the app on the emulator or connect your phone via USB to your computer to try it on your phone.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LRV2Yl_hObzAVxfdz4v%2F-LRV3MAGRyRss92jn3SE%2FScreenshot%20at%20Nov%2017%2012-07-25.png?alt=media\&token=086cb2b7-6309-42a9-b0ad-c2c012739715)

## Update contact info

Open file "trid/app/src/main/res/values/strings.xml" to update your application info&#x20;

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LThUlXQ3KBQ5hPMu9i5%2F-LThW7_rtD4FPsPAPDTa%2FScreen%20Shot%202018-12-14%20at%2011.16.20%20PM.png?alt=media\&token=8d9050f0-a5b2-4347-b330-7ea68937fc0a)
