Launching for android: Can't make an APK without an API installed

Hey guys,

I’m using ue4 4.8.1

I create a new project: “blueprint first person” (as suggested by the android quick start tutorial).
I can run the project from within windows, however launching a level for android ends with “unknown error” message.
Looking at the log I found a prior error:


Can’t make an APK without an API installed (see “android.bat list targets”)

LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: copying UAT log files…
LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully.
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 4.003056
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error


I followed these instructions:
https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html
for installing the android SDK (although I have eclipse and android studio who both can deploy on my device)
after installation under Edit->Prokect Settings->Android SDK all location fields are empty, I’m not sure if I should fill these and if so to which location I need to point.

Does anyone know a solution to this problem? Or a likely cause. It’s probably easy to fix when you know where to look.

Thanks a lot, Jelle

I have the same problem!

The setup of the Android developer package provided with the engine doesn’t work for me. When I google the message I get while trying to install it, it leads to an anserhub page where the answer is “contact Nvidia about it”. When I look at Nvidias developer page I see that the provided version is outdated. So I registered as a developer at the Nvidia page and downloaded and installed the newest version.

I set up the paths in the SDK configuration and when I try to package something I get the message in the topic title.

Hi jpostma1,

Your SDKconfig setup should look similar (depending on file paths) to the screenshot in this post. Have a look and see if that helps.

Thanks!

Found the problem.

What wittlief posted is right. Also you need to start the Android SDK thing one time and install all the APIs for all the android versions. Just install everything to be sure, I guess.