Unity3d-无法使用以下参数编译资源(WINDOWS) [英] Unity3d - Failed to compile resources with the following parameters (WINDOWS)
问题描述
我正在尝试将Unity3d中的项目构建为一个Android应用程序,它给了我这个错误:
I'm trying to build my project in Unity3d to an android app and it gives me this Error:
无法使用以下参数编译资源: -bootclasspath"C:/Users/itayt/AppData/Local/Android/sdk \ platforms \ android-24 \ android.jar" -d"C:\ Users \ itayt \ Documents \ ShowTest \ Temp \ StagingArea \ bin \ classes" -source 1.6 -target 1.6 -encoding UTF-8"com \ wikitude \ unity \ R.java"
Failed to compile resources with the following parameters: -bootclasspath "C:/Users/itayt/AppData/Local/Android/sdk\platforms\android-24\android.jar" -d "C:\Users\itayt\Documents\ShowTest\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\wikitude\unity\R.java"
我在网上看到了一个解决方案,但这是针对Ubuntu的,并且我正在使用Windows. 我已经尝试过的事情:
I saw a solution on the web but it was for Ubuntu, and I'm using Windows. things I already tried:
-在环境变量中添加Java路径
-下载最新的Jdk和Jre
-adding the Java path in the Environment Variables
-downloading the latest Jdk and Jre
Windows用户有什么解决方案吗?
any solutions to a Windows user?
推荐答案
对于其他在此处遇到的人:从Unity 2017开始,Unity与JDK 9不兼容.您需要暂时继续使用JDK 1.8.
For anyone else who ends up here: As of Unity 2017, Unity is incompatible with JDK 9. You need to continue to use JDK 1.8 for the time being.
这篇关于Unity3d-无法使用以下参数编译资源(WINDOWS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!