Jawad Al Harraoui
Jawad Al Harraoui

Reputation: 1

Unity - Failed to compile resources while building android 2d game

This is what the console says .. I tried to change the sdk build tools and also updated the jdk to 9,1 but nothing worked

Failed to compile resources with the following parameters:
-bootclasspath "/Users/mac/Library/Android/sdk/platforms/android-27/android.jar" -d "/Users/mac/Desktop/ReSkiN/Code Source Andriod/ZombieLand_SourceCode/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "android/support/v4/R.java" "android/support/v7/cardview/R.java" "com/facebook/R.java" "com/facebook/android/R.java" "com/google/android/gms/R.java" "com/google/android/gms/ads/R.java" "com/google/android/gms/ads/impl/R.java" "com/google/android/gms/base/R.java" "com/google/android/gms/clearcut/R.java" "com/google/android/gms/gass/R.java" "com/google/android/gms/tasks/R.java" "com/google/unity/R.java" "com/ponygames/ZombieLand/R.java" "com/unity3d/ads/R.java"
warning: [options] source value 1.6 is obsolete and will be removed in a future release
warning: [options] target value 1.6 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings

UnityEditor.HostView:OnGUI()

Upvotes: 0

Views: 193

Answers (1)

Hamid Yusifli
Hamid Yusifli

Reputation: 10137

This error happens because of (JDK 9). You should install the latest version of (JDK 8), that will fix it.

Upvotes: 1

Related Questions