gpt4 book ai didi

unity-game-engine - Unity - 无法编译具有以下参数的资源 :

转载 作者:行者123 更新时间:2023-12-02 16:57:31 26 4
gpt4 key购买 nike

我正在努力将 Google Play 游戏服务添加到 Unity 项目中。

最近开始出现这些错误,但不确定是否是由于游戏服务,或者可能是我更新了我的机器。

控制台输出如下:

Failed to compile resources with the following parameters: -bootclasspath "/Users/alex/development/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-21/android.jar" -d "/Users/alex/Documents/development/unity/Maze/Maze/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "com/facebook/android/R.java" "com/google/android/gms/R.java" "com/google/example/games/basegameutils/R.java" "com/google/example/games/mainlibproj/R.java" "com/mildspring/maze/R.java" warning: java/lang/Object.class(java/lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. 1 warning

UnityEditor.HostView:OnGUI()

<小时/>

Error building Player: UnityException: Resource compilation failed! Failed to recompile android resource files. See the Console for details.

最佳答案

得到我的答案,问题是“主要版本51”是java 1.7,“版本50”是java 1.6。解决方案是安装 Java 1.7 并使用以下命令相应地设置路径。

sudo ln -nsf /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK

关于unity-game-engine - Unity - 无法编译具有以下参数的资源 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26856305/

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