gpt4 book ai didi

java - 资源编译失败

转载 作者:行者123 更新时间:2023-12-02 03:06:24 24 4
gpt4 key购买 nike

添加从官方 github 存储库下载的 Play 商店服务包后,当我尝试在 Unity 5.5.0f3 中针对 Android 进行编译时,出现此错误消息。

Failed to compile resources with the following parameters:
-bootclasspath "C:/Users/Riccardo/AppData/Local/Android/sdk\platforms\android-25\android.jar" -d "D:\Develop\Unity Projects\OxS Tennis Game Mobile\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "android\support\v4\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" "com\IgnisTenebrisStudio\Hellball\R.java" "com\unity3d\ads\R.java"
warning: C:\Users\Riccardo\AppData\Local\Android\sdk\platforms\android-25\android.jar(java/lang/Object.class): major version 52 is newer than 51, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: C:\Users\Riccardo\AppData\Local\Android\sdk\platforms\android-25\android.jar(java/lang/AutoCloseable.class): major version 52 is newer than 51, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
2 warnings

UnityEditor.HostView:OnGUI()

我还设置了 JAVA_HOME 和 Path(Win 10 操作系统)。

在我的例子中,JAVA_HOME 是C:\Program Files\Java\jdk1.7.0_79

在路径中我有C:\Program Files\Java\jdk1.7.0_79\bin

有人可以帮助我吗?我应该尝试更新到jdk1.8吗?

最佳答案

好的,我找到了解决方案。

我更新到jdk 1.8_111并更新了所有系统路径。现在 Unity 正在编译我的项目。

关于java - 资源编译失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41672613/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com