# Android studio

**URL:** <https://forum.heroiclabs.com/t/android-studio/1023>\
**Category:** Game Design\
**Tags:** getting-started\
**Created:** [October 4, 2020, 4:05pm UTC](https://forum.heroiclabs.com/t/android-studio/1023 "2020-10-04T16:05:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajchopra](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@surajchopra](https://forum.heroiclabs.com/u/surajchopra)\
**Post date:** [October 4, 2020, 4:05pm UTC](https://forum.heroiclabs.com/t/android-studio/1023/1 "2020-10-04T16:05:16Z")

</div>

String email = “[email@example.com](mailto:email@example.com)”;  
String password = “3bc8f72e95a9”;  
Session session = client.authenticateEmail(email, password).get();  
System.out.format("Session: %s ", session.getAuthToken());

in this code When use in android studio it dont Show get() function.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [October 4, 2020, 5:59pm UTC](https://forum.heroiclabs.com/t/android-studio/1023/2 "2020-10-04T17:59:48Z")

</div>

@surajchopra How do you import the client into your Android Studio project?

You can see the function in the Java client codebase which uses a `ListenableFuture` object:

[https://github.com/heroiclabs/nakama-java/blob/master/src/main/java/com/heroiclabs/nakama/Client.java#L240-L246](https://github.com/heroiclabs/nakama-java/blob/master/src/main/java/com/heroiclabs/nakama/Client.java#L240-L246)

You can see that a `ListenableFuture` contains a `.get()` method:

[https://guava.dev/releases/21.0/api/docs/com/google/common/util/concurrent/ListenableFuture.html](https://guava.dev/releases/21.0/api/docs/com/google/common/util/concurrent/ListenableFuture.html)

This is also confirmed within our test cases which use it to fetch the result of the network request on the main thread:

[https://github.com/heroiclabs/nakama-java/blob/master/src/test/java/com/heroiclabs/nakama/AuthenticateTest.java#L56](https://github.com/heroiclabs/nakama-java/blob/master/src/test/java/com/heroiclabs/nakama/AuthenticateTest.java#L56)

---

<div class="post-metadata">

**Author:** ![surajchopra](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@surajchopra](https://forum.heroiclabs.com/u/surajchopra)\
**Post date:** [October 5, 2020, 2:40am UTC](https://forum.heroiclabs.com/t/android-studio/1023/3 "2020-10-05T02:40:15Z")

</div>

i have download the .jar client file from github and include in android studio . when i use the  
implementation ‘com.github.heroiclabs:nakama-java:’  
then error come that  
Failed to resolve: com.github.heroiclabs:nakama-java:  
Show in Project Structure dialog  
Affected Modules: app

please help to add listenablefuture

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [October 5, 2020, 11:21am UTC](https://forum.heroiclabs.com/t/android-studio/1023/4 "2020-10-05T11:21:58Z")

</div>

@surajchopra If you want to download the JAR and include it rather than via the dependency resolver with Maven or Gradle you should download and use the fat JAR which includes all dependencies within the JAR package:

[https://github.com/heroiclabs/nakama-java#getting-started](https://github.com/heroiclabs/nakama-java#getting-started)

Have a look at the getting started section of the README which covers the fat JAR example.

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [October 15, 2020, 8:13pm UTC](https://forum.heroiclabs.com/t/android-studio/1023/5 "2020-10-15T20:13:25Z")

</div>

@ [surajchopra](https://forum.heroiclabs.com/u/surajchopra)

Could you see if you get better results with the latest commit in [https://github.com/heroiclabs/nakama-java/pull/46/commits](https://github.com/heroiclabs/nakama-java/pull/46/commits)?

You’ll need to look at the updated `README.md` in that pull request for a new Maven coordinate scheme.
