- Home /
Align Error Android APK build
Hello All,
I am building a game for android. When I try to build the apk file (or run it on my device), it gives me the following error. I have also added Android SDK to unity and I am able to build apk file for other projects, but this project needs JDK and I guess something is going wrong with it. I am using Unity 4.12f on a 64bit pc, I have JDK SE 6u45 (b06) development kit (version 32 bit) and I have android SDK and the same kind of project works fine in eclipse. I feel something is wrong with the link between JDK and unity. I would really appreciate it if someone could help me with this.
Win32Exception: ApplicationName='\tools\zipalign', CommandLine='-v 4 repack_apk\dist\dyhtdy.apk dyhtdy.apk', CurrentDirectory='C:/Users/Dell/Desktop/temp33/Unity Project' System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start () (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () PostProcessScriptStarter.runProcess (System.String fileName, System.String arguments, System.String workingDir, System.String addToPath) (at Assets/Editor/SoomlaPostBuild.cs:115) PostProcessScriptStarter.OnPostprocessBuild (BuildTarget target, System.String pathToBuiltProject) (at Assets/Editor/SoomlaPostBuild.cs:66) UnityEditor.HostView:OnGUI()
Answer by anajimmy · Aug 08, 2013 at 10:56 PM
I am going to answer this for me :D So, that how it worked for me: Uninstall JDK Install JDK 6, 32 bit Add variable names "ANDROID_HOME" and "JAVA_HOME" to their directories in system setting. (windows 7)
Answer by awesomeaustin316 · Aug 06, 2013 at 05:41 AM
for me I had to also install 32 bit jdk. I don't know if this will help you, but you could try
Yeah I have seen that in some forums and I am using 32 bit too.. I hope I find the problem, thanks anyway ;)
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Unity Ads Unnecessary Android Permissions 1 Answer
Share results or score on google+ from android unity3d 1 Answer
FATAL EXCEPTION - dvm crash ? 1 Answer