What is the latest SDK and how to set it up?

I am using UE 4.19 and I was successfully building my game with SDK 1R6u1 on Android 8.0.0. When I tried to install the game on 7.1.1 device it didn’t work (device in question is Samsung Galaxy J5 2016). I figured that I need the latest SDK so I downloaded 1R7.

I set Min SDK to 21 and Max SDK to 26 (in Platforms > Android).

I then set SDK and NDK API level to android-26 (in Platforms > Android SDK).
Than I couldn’t build at all (I tried: File > Package Project > Android Multi). I get Android Development Setup prompt.

What am I doing wrong. Could it be a bad install of 1R7 files?

Generly you should not update any SDK tools (like VS and Android SDK) if it’s not notify that latest version is supported, 1R7 may changed some paths or UE4 tries to look for explicitly for 1R6u1. Make sure you got path correctly setup in “Android SDK” section in “Project Settings”, if 1R7 don’t work regardless go back to 1R6u1.

Remeber that CodeWorks is just a pack which contains Adnroid SDK, regardless of version make sure you have Android SDK for you target API level (the version you set in Platforms > Android SDK) in chooser.exe inside CodeWords forder.

Remember that if you build your application on higher API level it may not work on lower ones so you should build your application with SDK version of your minimal API, so if you use 21 as minimal you should use SDK 21. It might be reason why it didn’t work for 7.1.1 which is API level 25.

If this does not fix the issue, then you should see logcat of Samsung Galaxy J5 with DDMS and see exactly what is not working, to see it turn on android-sdk-windows\tools\monitor.bat in CodeWorks. On the bottom you will have a log, it will show all logs that you device is throwing, you will need to filter by package name of your application or “UE4” tag. DDMS is depricated so there no documentation on it on Android Developer site anymore

You can also use logcat in command line direcly via ADB

If you find any error and you dont understand it copy paste here in comment

Thank you very much for the answer. I will notify you when or if I succeed.

Thank you again! I solved my problem by following this post:

I also found out how to install additional SDK versions by following this post:
http://api.unrealengine.com/INT/Platforms/Android/InstallAdditionalAndroidSDK/index.html
Thank you for your information you were a big help!

I can’t find the explanation why it doesn’t build on a Samsung. I will continue to search for a solution… Thank you again.