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
0
Question by Jayeshkumar · Jul 08, 2014 at 12:07 PM · androidmobile

Not able to publish android application from unity.

Hi everyone, I am new to unity android platform. I just tried to publish a scene. It is giving me an error message like " Error building Player: Win32Exception: ApplicationName='F:/Android_SDK/adt-bundle-windows-x86_64-20140702/sdk\tools\zipalign.exe', CommandLine='4 "F:\JAYESH\UNITY 3D\Android\Testing\Temp/StagingArea/Package_unaligned.apk" "F:\JAYESH\UNITY3D\Android\Testing2\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea' " I have no idea what it is. I have set android sdk location from preference to the correct location. I would like to test the application in AVD. For that what do I need to do? Do I need to install Unity Remote in my AVD?

Please give me some suggestions. Thanks

Comment
Add comment · Show 3
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 meat5000 ♦ · Jul 08, 2014 at 12:16 PM 0
Share

Start by opening Android SD$$anonymous$$ manager from that location and checking to see if your APIs are actually installed. After this check that Platform tools and Build tools are installed in the manager.

To use AVD you will need relevant files installed in SD$$anonymous$$ manager from your device manufacturer, usually available at their searchable Dev sites. They will explain how to do this and get the VD running.

The easiest way to test with AVD is export Google project to Eclipse and Run the project through it selecting your AVD as target device, after linking the same Android SD$$anonymous$$ to it.

avatar image Jayeshkumar · Jul 08, 2014 at 12:31 PM 0
Share

thanks for the comment, I have installed Android 4.2.2 and Android 4.3 API, build tools and platform tools. The last part, I am not aware of it. Could you tell what is Google project and how to export it from unity ?

avatar image meat5000 ♦ · Jul 08, 2014 at 12:34 PM 0
Share

Its an option in the Build Settings. It basically exports the project so you can include it in an external program, like Eclipse, which is for building Android apps. Its included when you download the ADT Bundle.

4 Replies

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

Answer by JayFitz91 · Jul 08, 2014 at 01:49 PM

If you go into the root install of your android SDK and then go to the sdk/build-tools folder, you will find zipalign.exe, if you copy this from that folder to sdk/tools, it should work.

Give it a go and let me know how you get on

Here is a link to my question in which I was having the same problem:

http://answers.unity3d.com/questions/742757/android-build-error-error-building-player.html

Comment
Add comment · Show 2 · 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 Jayeshkumar · Jul 09, 2014 at 04:07 AM 0
Share

It worked. Thanks for the comment . :)

avatar image JayFitz91 · Jul 09, 2014 at 08:26 AM 0
Share

Happy to help, if you're satisfied could you select my answer please as it will help others out with the same problem :)

avatar image
1

Answer by Andres-Fernandez · Jul 08, 2014 at 12:46 PM

It's a very common problem with latest ADT release. It happens because they switched zipalign.exe to the build-tools folder (it has happened before with some other tools). You can solve it just by copying zipalign.exe from your F:/AndroidSDK/adt-bundle-windows-x8664-20140702/sdk/build-tools/android4.4W folder to F:/AndroidSDK/adt-bundle-windows-x8664-20140702/sdk/tools folder.

Comment
Add comment · Show 4 · 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 Andres-Fernandez · Jul 08, 2014 at 12:48 PM 0
Share

I mean, sure you can fiddle with configuration files and stuff to get a more elegant solution, but this is the fastest/easiest way to solve it.

avatar image Jayeshkumar · Jul 08, 2014 at 01:05 PM 0
Share

I couldn't find zipalign.exe in that folder.

avatar image VIPINSIRWANI · Jul 08, 2014 at 01:30 PM 0
Share

I am facing Same issue anyone know how to solve this issue.

avatar image Andres-Fernandez · Jul 08, 2014 at 05:19 PM 0
Share

$$anonymous$$y bad, it's folder .../sdk/build-tools/android4.4W/zipalign.exe (maybe the android4.4W is different, but it should be the folder hanging from build-tools. I edited the answer to avoid mistakes.

avatar image
-1

Answer by liortal · Jul 09, 2014 at 07:02 AM

This was a bug with Unity and the latest android SDK (23.x).

Unity released 4.5.1 p4 that resolved this issue - http://forum.unity3d.com/threads/unity-patch-releases.246198/

Comment
Add comment · Show 3 · 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 meat5000 ♦ · Aug 31, 2014 at 11:14 AM 0
Share

Not everyone can afford the luxury of upgrading mid-project. It is better to offer a fix.

avatar image liortal · Aug 31, 2014 at 05:08 PM 1
Share

I believe it is better to have an up-to-date version with official fixes, than to work around problems. As such, I personally think that it's better to direct people to the official fix rather than let them copy files around (in this case it is a simple workaround though). In any case, your behaviour of trying to "revenge" because i downvoted on your answer is childish and un-professional.

avatar image meat5000 ♦ · Sep 01, 2014 at 04:38 PM 0
Share

Yes it is :D Have at you!

You didnt open the link before you downvoted and the first line of it stated ND$$anonymous$$ required! I'm not here to be professional and I like games, so I'm pretty childish too. In future, read before you vote.

Anyway, on this issue, it is a very bad idea to upgrade mid-project. It can be very costly. Very costly indeed.

Unfortunately, I do agree with your comment of being up to date so I am forced to give you some points. Damn you!

avatar image
0

Answer by CStampGames · Jun 04, 2018 at 10:15 PM

Follow my concise and comprehensive tutorial. It should have all of the info you need: https://www.cstampgames.com/publish-unity-on-android

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

Can you get the height that you are holding the phone? 2 Answers

big terrain performance && mobile 1 Answer

Touches not registering in android? 0 Answers

iOS and Android Publishing 2 Answers

Is this surface shader too heavy for mobile? 0 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