- Home /
*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"):
Assembly-CSharp.csproj
Assembly-CSharp.pidb
Assembly-CSharp-vs.csproj
SP33D - Mobile.sln
SP33D - Mobile.userprefs
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!
Do you see any errors after the build in the Unity console window? Also, could you post what does the output directory contain exactly? (Trying building to a new, empty folder).
No errors at all. I will try building to a new empty folder before giving the full output directory.
Well, this is even worse. No files are made AT ALL. Literally, zero files. I have tried building in two different places (in one very long directory and one as short as I can get) but NOTHING happens, but Unity shows no errors or warnings.
@liortal This is a $$anonymous$$ASSIVE list of the files made:
Root folder:
Assembly-CSharp.csproj
Assembly-CSharp.pidb
Assembly-CSharp-vs.csproj
SP33D - $$anonymous$$obile.sln
SP33D - $$anonymous$$obile.userprefs
SP33D - $$anonymous$$obile-csharp.sln
Library:
Annotation$$anonymous$$anager
assetDatabase3
AssetImportState
AssetServerCacheV3
AssetVersioning.db
BuildPlayer.prefs (Empty)
BuildSettings.asset
EditorUserBuildSettings.asset
EditorUserSettings.asset
expandedItems
FailedAssetImports.txt (Empty)
guidmapper
InspectorExpandedItems.asset
$$anonymous$$ono$$anonymous$$anager.asset
ProjectSettings.asset
Script$$anonymous$$apper
FOLDER metadata with folders from 00 to ff, some with files, some without.
FOLDER ScriptAssemblies including 1. Assembly-CSharp.dll 2. Assembly-CSharp.dll.mdb 3. CompilationCompleted.txt
ProjectSettings: 12 .asset files by the names of:
Audio$$anonymous$$anager
Dynamics$$anonymous$$anager
EditorBuildSettings
EditorSettings
GraphicsSettings
Input$$anonymous$$anager
Nav$$anonymous$$eshLayers
Network$$anonymous$$anager
ProjectSettings
QualitySettings
Tag$$anonymous$$anager
Time$$anonymous$$anager
But still no .apk file, FFS?! Would appreciate if you could compare this with something you have successfully built for Android.
Answer by 432qwerty · Jul 28, 2014 at 05:28 PM
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
It is true you just need to update the Unity? I have the same problem now -_- and your post in 2014. It's suck. Please help me.
Answer by aress · Jul 27, 2014 at 04:23 PM
Enter in File >> Build Settings >> select Build or Build and Run then will ask you to safe the apk
I don't think you understand my situation. This problem occurs after I've selected where to save the apk file... Unity builds the program but no apk file is created in the place which I have chosen.
Answer by basil_byjus · Mar 28, 2018 at 07:54 AM
[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.
Your answer
Follow this Question
Related Questions
IAP doesn't work in google play store (on device) but works fine in the editor. 0 Answers
Android dev - APK builder failed 0 Answers
OnTriggerEnter works on Unity Editor but not in android device? 1 Answer
Android - Design your app for tablets optimization tip on Google Play 0 Answers
Why doesn't my scene update when deploying to Android? 4 Answers