Search Unity

Unity dont compile after install unity ads on OS X

Discussion in 'Unity Ads & User Acquisition' started by Juaprebo, Nov 15, 2014.

  1. Juaprebo

    Juaprebo

    Joined:
    Nov 15, 2014
    Posts:
    19
    (SOLVED a hidden 1.6 Java installation was on my system)

    Hi all, after install Unity Ads from Asset Store I got this message trying to compile to android:

    Failed to compile resources with the following parameters:
    -bootclasspath "/Volumes/Datos/programación/adt-bundle-mac-x86_64-20140702/sdk/platforms/android-21/android.jar" -d "/Volumes/Datos/programación/Unity Projects/FappyBird/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "com/Entertainment/flappy/R.java" "com/unity3d/ads/android/R.java"
    warning: java/lang/Object.class(java/lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
    It is recommended that the compiler be upgraded.

    I tried to use some java jdk versions (1.6, 1.7, 1.8) I tried to uninstall all versions and install others, buy I always got this message.

    Can some one help me?

    Thks.
     
    Last edited: Nov 15, 2014
    unity-nikkolai and Salazar like this.
  2. unity-nikkolai

    unity-nikkolai

    Joined:
    Sep 18, 2014
    Posts:
    540
    Ran into this issue myself today after updating and installing the latest Android SDK packages. There's an alternate solution to this issue here.