Failed to recompile android resource files. See the Console for Details [Build fail]

When building my android game I get 3 errors:

error 1: Failed to compile resources with the following parameters: -bootclasspath "C:/Users/kevin/AppData/Local/Android/sdk\platforms\android-23\android.jar" -d "D:\Unity Projects\Simple Pickup Game\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\KevinCreates\MobileGame\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()



For me I downgraded from JDK 9 to JDK 8 and that helped me. You might want to try it out. Hope it helps you.


这个操作没问题,就是JDK版本太高了...

下载地址

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

猜你喜欢

转载自blog.csdn.net/zphshiwo/article/details/80584090
今日推荐