Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by 432qwerty · Jul 27, 2014 at 04:00 PM · androidnot workingapksilent

*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!

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image 432qwerty · Jul 27, 2014 at 07:04 PM 0
Share

A little bump ;)

avatar image liortal · Jul 27, 2014 at 10:18 PM 0
Share

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).

avatar image 432qwerty · Jul 28, 2014 at 02:58 PM 0
Share

No errors at all. I will try building to a new empty folder before giving the full output directory.

avatar image 432qwerty · Jul 28, 2014 at 03:03 PM 0
Share

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.

avatar image 432qwerty · Jul 28, 2014 at 03:38 PM 0
Share

@liortal This is a $$anonymous$$ASSIVE list of the files made:

Root folder:

  1. Assembly-CSharp.csproj

  2. Assembly-CSharp.pidb

  3. Assembly-CSharp-vs.csproj

  4. SP33D - $$anonymous$$obile.sln

  5. SP33D - $$anonymous$$obile.userprefs

  6. SP33D - $$anonymous$$obile-csharp.sln

Library:

  1. Annotation$$anonymous$$anager

  2. assetDatabase3

  3. AssetImportState

  4. AssetServerCacheV3

  5. AssetVersioning.db

  6. BuildPlayer.prefs (Empty)

  7. BuildSettings.asset

  8. EditorUserBuildSettings.asset

  9. EditorUserSettings.asset

  10. expandedItems

  11. FailedAssetImports.txt (Empty)

  12. guidmapper

  13. InspectorExpandedItems.asset

  14. $$anonymous$$ono$$anonymous$$anager.asset

  15. ProjectSettings.asset

  16. Script$$anonymous$$apper

  17. FOLDER metadata with folders from 00 to ff, some with files, some without.

  18. FOLDER ScriptAssemblies including 1. Assembly-CSharp.dll 2. Assembly-CSharp.dll.mdb 3. CompilationCompleted.txt

ProjectSettings: 12 .asset files by the names of:

  1. Audio$$anonymous$$anager

  2. Dynamics$$anonymous$$anager

  3. EditorBuildSettings

  4. EditorSettings

  5. GraphicsSettings

  6. Input$$anonymous$$anager

  7. Nav$$anonymous$$eshLayers

  8. Network$$anonymous$$anager

  9. ProjectSettings

  10. QualitySettings

  11. Tag$$anonymous$$anager

  12. Time$$anonymous$$anager

But still no .apk file, FFS?! Would appreciate if you could compare this with something you have successfully built for Android.

Show more comments

4 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jakepacia · Jan 04, 2018 at 04:34 AM 0
Share

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.

avatar image
1

Answer by rutter · Jul 31, 2014 at 03:39 AM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image 432qwerty · Jul 27, 2014 at 04:36 PM 1
Share

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.

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges