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 badjano · Sep 11, 2014 at 07:18 PM · androidbuildwindows

Error building APK

I'm getting this error when trying to build android, my SDK is up to date and I am able to build it in my Mac... this only happens when trying to build for Windows.

Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "H:/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -d "H:\Unity3D\Project\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\domain\Project\R.java" "com\facebook\android\R.java" "com\google\android\gms\R.java" "com\google\example\games\basegameutils\R.java" "com\google\example\games\mainlibproj\R.java"', CurrentDirectory='H:\Unity3D\Project\Temp\StagingArea\gen'

EDITED:

Installed JDK 32bit the got a different error now:

Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details. C:\Program Files (x86)\Java\jdk1.8.020\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="H:/adt-bundle-windows-x8664-20140702/sdk\tools" -Dfile.encoding=UTF8 -jar "F:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[ Error: Not a file 'H:\Unity3D\Project' ] stdout[ ]

Comment
Add comment · Show 6
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 khos85 · Sep 11, 2014 at 07:40 PM 0
Share

Try to compile to later Android level, 1.6....isn't that a really old android version? maybe this old android version doesn't like some of the jars/classes you want to use?

Also is you Java 32 or 64bit? If 64bit you may have to change that so it is 32bit :)

avatar image badjano · Sep 11, 2014 at 08:40 PM 0
Share

Thanks! I'll try the java 32bit, I think it's not the API level, cause in my $$anonymous$$ac is building O$$anonymous$$! Thanks again, I'll let you know how it goes

avatar image badjano · Sep 11, 2014 at 08:53 PM 0
Share

Different error now:

Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details. C:\Program Files (x86)\Java\jdk1.8.0_20\bin\java.exe -Xmx1024$$anonymous$$ -Dcom.android.sdkmanager.toolsdir="H:/adt-bundle-windows-x86_64-20140702/sdk\tools" -Dfile.encoding=UTF8 -jar "F:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[ Error: Not a file 'H:\Unity3D\Project' ] stdout[

]

avatar image liortal · Sep 11, 2014 at 09:20 PM 0
Share

What exists in the path H:\Unity3d\Project ?

avatar image badjano · Sep 12, 2014 at 02:36 PM 0
Share

$$anonymous$$y Unity project, actually that's not it, it's a different path but I switched it so it would be easier to understand...

Show more comments

2 Replies

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

Answer by jpc133 · Sep 11, 2014 at 09:13 PM

This might help: http://forum.unity3d.com/threads/error-building-player-win32exception-applicationname-java-exe.80552/

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 badjano · Sep 12, 2014 at 04:53 PM 0
Share

thanks! But I got a second error after installing JD$$anonymous$$ 32bit... :(

avatar image badjano · Sep 12, 2014 at 08:58 PM 0
Share

Restarting the computer after installing 32bit did the trick! Thanks

avatar image
1

Answer by Patrick_van_Duyse · Jul 14, 2015 at 09:38 PM

About the second problem, where It was saying that your Project Folder wasn't a file, it was a keystore problem.

Quite simply, looking for a nonspecified keystore = looking for a keystore file with the same address as the Project Folder.

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 MESSI007 · Feb 12, 2018 at 10:59 AM 0
Share

thank you , you saved my day i, i m really greatefull :*

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

28 People are following this question.

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

Related Questions

Crossplatform Windows and Android: How to share same codebase? 3 Answers

Using a PC Oriented code to make an Android Build. 1 Answer

Distribute terrain in zones 3 Answers

Is it possible to create Windows/Mac installer on Linux OS? 1 Answer

Why does my Android phone have Lag Spikes (Sometimes)? 2 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