Failed to compile resources with the following parameters

来源:互联网 发布:linux tail -f 编辑:程序博客网 时间:2024/05/16 18:21

Mac编译build错误提示

Failed to compile resources with the following parameters:-bootclasspath "/Users/ELING/Library/Android/sdk/platforms/android-25/android.jar" -d "/Users/ELING/Desktop/a/IceRunning-Unlimted/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "android/support/v4/R.java" "com/gamesky/pol/R.java" "com/google/android/gms/R.java" "com/google/android/gms/auth/R.java" "com/google/android/gms/auth/api/R.java" "com/google/android/gms/base/R.java" "com/google/android/gms/drive/R.java" "com/google/android/gms/games/R.java" "com/google/android/gms/nearby/R.java" "com/google/android/gms/tasks/R.java" "com/google/example/games/mainlibproj/R.java"警告: /Users/ELING/Library/Android/sdk/platforms/android-25/android.jar(java/lang/Object.class): 主版本 5251 新, 此编译器支持最新的主版本。  建议升级此编译器。警告: /Users/ELING/Library/Android/sdk/platforms/android-25/android.jar(java/lang/AutoCloseable.class): 主版本 5251 新, 此编译器支持最新的主版本。  建议升级此编译器。2 个警告UnityEditor.HostView:OnGUI()

JDK使用1.8的就不会提示上面那个错误了

/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home

原文链接
https://forum.unity3d.com/threads/compiling-error-major-version-52-is-newer-than-51.412478/

0 0