*CLOSED* Android build not creating .apk file (silent build)

I have looked everywhere for a solution to this but can’t find one. When I try to build my project for Android, Unity goes through the motions and everything appears to have worked. I then search the directory in which I built it and find no .apk file. There are plenty of files there, with Library including metadata and ScriptAssemblies and several other files, ProjectSettings containing .asset files and six other files outside of these directories (project called “SP33D - Mobile”):

  1. Assembly-CSharp.csproj
  2. Assembly-CSharp.pidb
  3. Assembly-CSharp-vs.csproj
  4. SP33D - Mobile.sln
  5. SP33D - Mobile.userprefs
  6. SP33D - Mobile-csharp.sln

I’ve been trying to find a solution for two days now to no avail. I am still new to Unity and this is my first proper game and the first time I have developed for Android. As far as I know the Android SDK is correctly installed (for Android v 4.4W) and Unity recognises its location. It could just be a stupid mistake due to my lack of experience or something more complex, I don’t know. Please help!

Enter in File >> Build Settings >> select Build or Build and Run then will ask you to safe the apk

OK, I’ve solved it. I updated Unity, and then it worked. Sorry for wasting people’s time, I’m just a silly noob XD

If you want an APK, try not selecting “Google Android project”

See here, that feature is useful in case you want to continue working on the project after Unity builds it. If you want an APK, Unity can just give you that, instead.

[Fixed]

This could happen because of multiple issues, and the real issue here is that, Unity batchmode doesn’t show proper error logs in the console or log file.

I removed the -batchmode option and ran the command. Now the command is executed with Unity Editor opened. It will now show any errors, either in the log or as a popup.

My Issue:

In my case I forgot to change some keystore parameter, and unity showed me an error popup.