简体   繁体   English

将版本从Unity导出到Android失败

[英]Exporting a build from Unity to Android fails

I'm new to coding and to Unity. 我是编码和Unity的新手。 I've followed the step-by-step found in this google page . 我已按照此google页面中的步骤进行了操作。 I have installed all the SDKs and the latest versions of Unity and Android Studio for mac OS. 我已经为Mac OS安装了所有SDK和最新版本的Unity和Android Studio。

Everything goes according to plan and I get to the final "run and build". 一切都按计划进行,我进入最后的“运行和构建”阶段。 It connects fine to my Note 3 and runs almost to the end when I get the following errors: 它很好地连接到我的Note 3,并在出现以下错误时几乎运行到尽头:

Error message window 错误信息窗口 错误信息窗口

Assets/GoogleVR/Scripts/VRDevices/GvrDevice.cs(99,10): warning CS0618: `UnityEngine.GL.IssuePluginEvent(int)' is obsolete: `IssuePluginEvent(eventID) is deprecated. Use IssuePluginEvent(callback, eventID) instead.'

and

CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java
-Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/Bruno.Vilela/Library/Android/sdk/tools"
-Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar"
-

I have tried all that I am able to and have found no way around this. 我已经尽我所能,却找不到解决办法。 I am simply not versed enough in C# to debug this on my own. 我根本不精通C#自己调试它。 Any help will be greatly appreciated!! 任何帮助将不胜感激!!

SPECS: Macbook Pro running OS X 10.10.5 Unity 5.3.4f1 Personal Android Studio 2.1.1 Galaxy Note 3 running Android 5.0 SPECS:运行OS X 10.10.5的Macbook Pro运行Unity 5.0的Unity 5.3.4f1个人Android Studio 2.1.1 Galaxy Note 3

Cheers!! 干杯!!

-BV -BV

This might be caused due to having duplication jar files in your project. 这可能是由于项目中有重复jar文件引起的。 check if that is true, try removing any duplication and building the project again. 检查是否正确,请尝试删除所有重复项并重新构建项目。

some similar reference : http://answers.unity3d.com/questions/765961/multiple-plugin-conflict.html 一些类似的参考资料: http : //answers.unity3d.com/questions/765961/multiple-plugin-conflict.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM