Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
javaexp

Avatar / Picture

Registered:
Posts: 337
Reply with quote  #1 
Hi,

I have JDK 1.7 installed on my mac (Yosemite)
I am using Unity 4.3.4. When running my project for android from within Unity, I get the error:

 /Doraemon/Doremon Run/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding ascii "com/google/android/gms/R.java" "com/google/unity/R.java" "samstudio/games/doraemonrun/R.java"
warning: java/lang/Object.class(java/lang[redface]bject.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.

-source 1.6 -target 1.6 suggests me that unity is searching for JDK 1.6.
Will upgrading to Unity 4.6 resolve this problem or something else needs to be done.

__________________
 
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #2 
Hey Java, how are you man, sorry for the late reply to your post.
We dont use JDK but we had some problems with unity 4.5 and found that upgrading fixed the issues for us. This was related to iOS builds though. Sorry I can't help much on this. Let me know how it goes.

Chat soon
Martin
0
zdm

Junior Member
Registered:
Posts: 5
Reply with quote  #3 
I had a similar problem. I upgraded to the latest jdk and unity4.6 fixted everything

I think what had happened was when I updated the android sdk it was calling for a file from a later jdk than I was running. I'm on Mountain Loin and was running jdk6  Iinstalled jdk8 and updated to unity 4.6 from 4.3 and all is good now.


hope that helps

Pete
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.