I can't build for Android []

I can’t package for Android. I’ve had this problem with other versions as well.
Every time the packaging will stop and gives me this error:

Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

I’ve tried uninstalling and reinstalling UE4, Visual Studio Community 2015 and Android SDK.

I’m not using any plug-ins and this even happens with brand new projects based on templates without changes.

I made sure Project Settings > Platforms > Android > APKPackaging says “Platform files are writeable” and is green.
I have the latest versions of Android SDK and the JDK.

Every time I feel like I need to give up before losing my mind. Unity successfully builds for android so I know it can’t be the Android SDK. I just don’t know what else to do.

Please, help me. Please.

Here is the whole output log of the packaging on a txt.

And this is my computer:

Thank you! I’m not packaging for distribution.

Here are my screenshots:

126983-packaging+settings.jpg

126985-android+sdk+settings.jpg

Sorry I didn’t provide screenshots before.

Also, here’s my AppData/Local/Android:

126986-sdk+directory.jpg

I don’t know if there should be that many sdk folders.

Could you please provide the following screen shots -

Packaging settings->Project Settings, Android SDK settings and Android settings.

Are you packaging “for distribution”?

In your log this is where things go wrong -

UATHelper: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: System.IO.DirectoryNotFoundException: No se puede encontrar una parte de la ruta de acceso ‘C:\Users\Michael\AppData\Local\Android\android-sdk\extras’.

Based on my fall and learn knowledge of packaging for android.

Apologies. As you can tell, I know almost nothing about programming.

Your pointing out that there’s an “extras” folder missing made me try the other sdk folders. Those do have an “extras” inside.

Also, I just realized I wasn’t pointing at the JDK directory at all.

And that did it! All I had to change was this:

126989-build+success.jpg

Thank you so much!

Cheers man! From working with android I have learn’t that most of the packaging issues arise from not correctly setting up the Android SDK. Great to know you got it working!