• 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 Kyranio · Jan 28, 2015 at 08:00 PM · androidbuildjavaapp

Error building android player

Error building Player: Win32Exception: ApplicationName='D:\Program Files (x86)\Java\jre1.8.0_31\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/Kyran/Desktop/adt-bundle-windows-x86_64-20140702 (1)/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-21\android.jar" -d "C:\Users\Kyran\Documents\Dodger\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\google\android\gms\R.java" "com\Wysca\Dodger\R.java"', CurrentDirectory='C:\Users\Kyran\Documents\Dodger\Temp

I have seen a lot of people having the same issues, however moving the zipalign.exe from build-tools to tools won't work with me.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by trul · Feb 16, 2015 at 10:12 AM

I've had similar problem. The solution was to check the Path (environment variable), I had unwanted space there. Or Try this solution: http://forum.unity3d.com/threads/unityads-dont-compile.285544/#post-1907280

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 Yury-Habets · Feb 17, 2015 at 10:36 AM

You are using JRE, when Unity requires JDK installed to build for Android. Please install the latest JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html You may also want to configure JAVA_HOME environment variable to point to your JDK installation, just as in the link mentioned by @trul.

In Unity 5.0, we added pre-build detection for JDK missing, so the user gets a friendly message.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Android app is not building in Unity, Error “Gradle initialization failed.” 1 Answer

Android build problem. 0 Answers

Java error when building 1 Answer

Distribute terrain in zones 3 Answers

Error Building Android Project 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges