Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

I am getting this error for a week,please help me!

Discussion in 'Editor & General Support' started by Efe67900, Jun 29, 2014.

  1. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    Guys i am getting this error for a week and im almost gone crazy,I've tried almost everyfreakingthing on the net but non of them works.For who can solve this problem,want whatever you want from me.(its a joke but im about the throw my pc out of balcony)


    Error building Player: Win32Exception: ApplicationName='C:/Users/Pc/Desktop/android\tools\zipalign.exe', CommandLine='4 "C:\Users\Pc\Documents\Crazy Ball\Temp/StagingArea/Package_unaligned.apk" "C:\Users\Pc\Documents\Crazy Ball\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea'
     
    Last edited: Jun 30, 2014
  2. Dubious-Drewski

    Dubious-Drewski

    Joined:
    Aug 19, 2012
    Posts:
    51
    You won't get any help like this. People will hit the back button before even reading through the first paragraph. As hard as it is, you've got to keep your cool, and give descriptive details. From this post, we can't even tell what it is you're trying to do. Are you just trying to build and run a project?

    Maybe your install is corrupt, and an update or reinstall of Unity might fix it? Try transferring your project onto another PC somehow, install Unity on there and see if the same error pops up.
     
  3. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11

    Bro,i said i've tried everything.Update or reinstall unity doesn't fix it,and i don't have another pc,if you know what can i do on this pc,than answer me please.And install is cannot corrupt,i installed everything in every different ways.İts gotta be joke.
     
  4. _met44

    _met44

    Joined:
    Jun 1, 2013
    Posts:
    633
    Don't bite the hand that tries to help you. You should be thankful people take the time to try to help you...

    First tell us when the error happens. It is during an android build, right ? Then at what step of the build does it happen.

    We're not there with you seeing what is happening on your computer so take a breath, wash your head with cold water and get some sleep if you haven't. When you're up for solving your issue, give us some material to help you :)

    Good luck.
     
  5. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    http://i.hizliresim.com/1P8EL1.png im getting this error right after build is finished.i really don't want to make a game anymore.I started with great fancy but now the name of unity and the name of android sdk giving me disgust.
     
  6. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    Any help ?
     
  7. AlkisFortuneFish

    AlkisFortuneFish

    Joined:
    Apr 26, 2013
    Posts:
    958
    Try to do a Windows standalone build and see if that works. If it does, reinstall the Android SDK, preferably somewhere that isn't your desktop.
     
  8. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    I can build it to windows,i already reinstalled and downloaded its features like 10 times,but everytime i try to build android to desktop,giving this error....
     
  9. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    Waiting for help..............
     
  10. _met44

    _met44

    Joined:
    Jun 1, 2013
    Posts:
    633
    Did you try to build an empty project with a single scene ?

    Check this link: http://forum.unity3d.com/threads/cant-build-apk-urgent-help-needed-solved.254106/ describes the same error as you, maybe something wrong with your android sdk. Try what they suggest if you haven't. (copy tools from version files)

    Now that I'm thinking of it, did you download all the android package/tools necessary for the version you target ? You can do that with the android download manager. Make sure you have an old version like 2.2 and a new one (> 4.0) So you can try with both ancient and recent versions.

    If that doesn't work, make sure unity has access to the android sdk root* (by starting it with admin right for example) and that you don't have a software (virus and anti virus for example) blocking the temp folder unity uses to create apk. Also make sure you try to save the apk in a folder you have access to and if you want to override an existing file make sure it's not locked etc...

    *: I'll consider you did fill the path correctly but you should check maybe...
     
  11. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    First of all my english is not so good,and i'll try what you said,and where is that zipalign.exe thing ? i can't find that..
     
  12. Efe67900

    Efe67900

    Joined:
    Jun 29, 2014
    Posts:
    11
    God damn it that worked ! Thank you so much met! it worked but after apk is done these words shows up :

    InvalidOperationException: Operation is not valid due to the current state of the object
    System.Collections.Stack.Peek () (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections/Stack.cs:321)
    UnityEngine.GUILayoutUtility.EndLayoutGroup () (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/GUILayoutUtility.cs:223)

    Shader is using clip instruction (usually caused by alpha test). It might cause problems on some Qualcomm/Adreno drivers.
    UnityEditor.HostView:OnGUI()

    İs this important ?
     
  13. _met44

    _met44

    Joined:
    Jun 1, 2013
    Posts:
    633
    glad I could help :)

    For the new issue, check how it goes on the hardware you target. Some shader features aren't up to date for mobiles at the system/hardware level and like the errors says it might not work.

    Make sure you have a proper fallback in all shaders you use so the look can downgrade in a controled way. This way even on the low end devices your app finishes it looks at least functional, if not pretty.