# Achievement problems

**URL:** <https://forums.unrealengine.com/t/achievement-problems/365083>\
**Category:** Blueprint\
**Tags:** achievements, unreal-engine, Android, question, Blueprint\
**Created:** [July 25, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/achievement-problems/365083 "2016-07-25T14:31:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoulRyder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SoulRyder](https://forums.unrealengine.com/u/SoulRyder)\
**Post date:** [July 25, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/achievement-problems/365083/1 "2016-07-25T14:31:35Z")

</div>

Hello,

So I am trying to get achievements working in our game, but I can’t seem to get a successful achievement connection.

So I first followed the unreal documentation. When that didn’t seem to work I followed [http://www.grimwolfgames.com/setting-up-android-achievements-in-ue4/](http://www.grimwolfgames.com/setting-up-android-achievements-in-ue4/)

But still it doesn’t seem to work… I can’t cache the achievements or write to them succesfully, the game is uploaded to android developer as an apk and is already downloadable as an alpha version to some people at the office. So it is a full shipping build published on the android store I am talking about. But I keep getting failure messages.

This is how I set up the achievements in unreal:

![99935-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/2/25298e5a9c4a97c680c5a6428e97df28a77405fb.png)

This in google play:

 ![99936-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/6/8d669e55069d8b0e17d21edf163167df0f7b5dbb.png)

This is how my game blueprint is setup:

 ![99937-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/7/e176c80d8c7de194330522bc1a4ef14c3b42c5e0.png)

 ![99938-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/0/7a090a060820349a23e4e58197c4925beea5d7b2.png)

And here is how I try to write to the achievement in a level blueprint

 ![99939-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/4/374d4ea6915920933274a394ae8477b6ff274f3d.png)

EDIT: I just noticed some flaws in writing to the achievement. But even though that could be a serious problem for writing to it. The cache achievements node also fails, so I think there is another problem going on!

---

<div class="post-metadata">

**Author:** ![Spectral\_Ink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spectral\_Ink](https://forums.unrealengine.com/u/Spectral_Ink)\
**Post date:** [July 25, 2016, 3:18pm UTC](https://forums.unrealengine.com/t/achievement-problems/365083/2 "2016-07-25T15:18:53Z")

</div>

According to Google, they won’t turn on until you have some magical number of scores recorded.

---

<div class="post-metadata">

**Author:** ![SoulRyder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SoulRyder](https://forums.unrealengine.com/u/SoulRyder)\
**Post date:** [July 25, 2016, 3:24pm UTC](https://forums.unrealengine.com/t/achievement-problems/365083/3 "2016-07-25T15:24:28Z")

</div>

Do you have a link to that? So I can’t test my achievements until I launched my game and then hopefully it works?

---

<div class="post-metadata">

**Author:** ![SoulRyder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SoulRyder](https://forums.unrealengine.com/u/SoulRyder)\
**Post date:** [August 2, 2016, 9:31am UTC](https://forums.unrealengine.com/t/achievement-problems/365083/4 "2016-08-02T09:31:09Z")

</div>

Can I get more information on this? I still have no idea how to get the achievements working! ☹

---

<div class="post-metadata">

**Author:** ![SoulRyder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SoulRyder](https://forums.unrealengine.com/u/SoulRyder)\
**Post date:** [August 5, 2016, 8:20am UTC](https://forums.unrealengine.com/t/achievement-problems/365083/5 "2016-08-05T08:20:53Z")

</div>

So I managed to fix it by following this [Integrate Google Play Services with Blueprint - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?89563-Integrate-Google-Play-Services-with-Blueprint)

And then it still did not work and I had to add something to the build.cs file.  
Which I found in this forum post:

> **[Google Play Loggin](https://forums.unrealengine.com/showthread.php?100637-Google-Play-Loggin)**
>
> Hey, I am near to end of dev for my game, i set-up my config like this for google play: And in my blueprint: I packaged my game for distribution, its on the store in open beta, but when I launch the game, there is no google play login that...

> I had the login return fail problem.  
> Made changes found all over the forums  
> relating to this (additions to  
> proguard-project.txt, etc.), the one  
> that finally did it:
> 
> Add to MyProject.build.cs:
> 
> if (Target.Platform ==  
> UnrealTargetPlatform.Android) {  
> PrivateDependencyModuleNames.Add(“OnlineSubsystem”);  
> PrivateDependencyModuleNames.Add(“OnlineSubsystemGooglePlay”);  
> }
> 
> Also: added AndroidEngine.ini:  
> [Android Compile Errors - Mobile - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?99143-Android-Compile-Errors)

---

<div class="post-metadata">

**Author:** ![D\_Deng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d_deng/32/758117_2.png) [@D\_Deng](https://forums.unrealengine.com/u/D_Deng)\
**Post date:** [April 21, 2024, 10:49am UTC](https://forums.unrealengine.com/t/achievement-problems/365083/6 "2024-04-21T10:49:39Z")

</div>

Not sure if this helps, but the solution @SoulRyder provided initially didn’t work for me until the following:

- Delete the ‘Android’ file under ‘Build’ in your project directory

- Re-clicking the red ‘configure now’ buttons under ‘APK Packaging’ and ‘Google Play Services’ in ‘Project Settings’ - ‘Android’

Maybe its unreal not recognising the change and needed reconfiguring?

NOTE: MAKE SURE NOT TO DELETE YOUR KEYSTORE FILE UNDER YOUR PROJECT DIRECTORY - ‘BUILD’ - ‘ANDROID’ (IF IT IS STORED THERE)

Hope this helps someone
