- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我有一个添加了 Google Play 服务的 Unity 项目。在我添加 AdMob 之前一切正常。现在我得到下面的错误。我已经检查过重复的 aar 文件,但找不到任何文件。 (文件列表也在下面。)我还尝试删除 Temp 文件夹并在 Unity Editor 中重新导入所有内容,同样没有任何运气。
CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_144\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/jakab/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzut;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzuu;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzuv;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzuw;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzux;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzuy;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzuz;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzva;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzvb;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
at com.android.dx.command.dexer.Main.main(Main.java:247)
at com.android.dx.command.Main.main(Main.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at SDKMain.main(SDKMain.java:130)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
... 9 more
]
stdout[
processing archive C:\Developing\Unity\Game\Temp\StagingArea\android-libraries\play-services-ads-11.2.2\libs\.\classes.jar...
ignored resource META-INF/
ignored resource META-INF/MANIFEST.MF
ignored resource com/
ignored resource com/google/
ignored resource com/google/android/
ignored resource com/google/android/gms/
ignored resource com/google/android/gms/ads/
ignored resource com/google/android/gms/ads/internal/
processing com/google/android/gms/ads/internal/ClientApi.class...
ignored resource com/google/android/gms/ads/internal/js/
processing com/google/android/gms/ads/internal/js/JavascriptEngineFactory.class...
processing com/google/android/gms/ads/internal/js/JavascriptEngineFactory$JSEngineSettableFuture.class...
processing com/google/android/gms/ads/internal/js/zza.class...
processing com/google/android/gms/ads/internal/js/zzaa.class...
processing com/google/android/gms/ads/internal/js/zzab.class...
processing com/google/android/gms/ads/internal/js/zzac.class...
processing com/google/android/gms/ads/internal/js/zzad.class...
processing com/google/android/gms/ads/internal/js/zzae.class...
processing com/google/android/gms/ads/internal/js/zzaf.class...
processing com/google/android/gms/ads/internal/js/zzag.class...
processing com/google/android/gms/ads/internal/js/zzah.class...
processing com/google/android/gms/ads/internal/js/zzai.class...
processing com/google/android/gms/ads/internal/js/zzaj.class...
processing com/google/android/gms/ads/internal/js/zzak.class...
processing com/google/android/gms/ads/internal/js/zzb.class...
processing com/google/android/gms/ads/internal/js/zzc.class...
processing com/google/android/gms/ads/internal/js/zzd.class...
processing com/google/android/gms/ads/internal/js/zze.class...
processing com/google/android/gms/ads/internal/js/zzf.class...
processing com/google/android/gms/ads/internal/js/zzg.class...
processing com/google/android/gms/ads/internal/js/zzh.class...
processing com/google/android/gms/ads/internal/js/zzi.class...
processing com/google/android/gms/ads/internal/js/zzj.class...
processing com/google/android/gms/ads/internal/js/zzk.class...
processing com/google/android/gms/ads/internal/js/zzl.class...
processing com/google/android/gms/ads/internal/js/zzm.class...
processing com/google/android/gms/ads/internal/js/zzn.class...
processing com/google/android/gms/ads/internal/js/zzo.class...
processing com/google/android/gms/ads/internal/js/zzp.class...
processing com/google/android/gms/ads/internal/js/zzq.class...
processing com/google/android/gms/ads/internal/js/zzr.class...
processing com/google/android/gms/ads/internal/js/zzs.class...
processing com/google/android/gms/ads/internal/js/zzt.class...
processing com/google/android/gms/ads/internal/js/zzu.class...
processing com/google/android/gms/ads/internal/js/zzv.class...
processing com/google/android/gms/ads/internal/js/zzw.class...
processing com/google/android/gms/ads/internal/js/zzx.class...
processing com/google/android/gms/ads/internal/js/zzy.class...
processing com/google/android/gms/ads/internal/js/zzz.class...
ignored resource com/google/android/gms/ads/internal/overlay/
processing com/google/android/gms/ads/internal/overlay/AdOverlayInfoParcel.class...
processing com/google/android/gms/ads/internal/overlay/zza.class...
processing com/google/android/gms/ads/internal/overlay/zzaa.class...
processing com/google/android/gms/ads/internal/overlay/zzab.class...
processing com/google/android/gms/ads/internal/overlay/zzac.class...
processing com/google/android/gms/ads/internal/overlay/zzad.class...
processing com/google/android/gms/ads/internal/overlay/zzae.class...
processing com/google/android/gms/ads/internal/overlay/zzaf.class...
processing com/google/android/gms/ads/internal/overlay/zzag.class...
processing com/google/android/gms/ads/internal/overlay/zzaj.class...
processing com/google/android/gms/ads/internal/overlay/zzak.class...
processing com/google/android/gms/ads/internal/overlay/zzal.class...
processing com/google/android/gms/ads/internal/overlay/zzam.class...
processing com/google/android/gms/ads/internal/overlay/zzan.class...
processing com/google/android/gms/ads/internal/overlay/zzao.class...
processing com/google/android/gms/ads/internal/overlay/zzap.class...
processing com/google/android/gms/ads/internal/overlay/zzaq.class...
processing com/google/android/gms/ads/internal/overlay/zzar.class...
processing com/google/android/gms/ads/internal/overlay/zzas.class...
processing com/google/android/gms/ads/internal/overlay/zzat.class...
processing com/google/android/gms/ads/internal/overlay/zzau.class...
processing com/google/android/gms/ads/internal/overlay/zzb.class...
processing com/google/android/gms/ads/internal/overlay/zzc.class...
processing com/google/android/gms/ads/internal/overlay/zzd.class...
processing com/google/android/gms/ads/internal/overlay/zze.class...
processing com/google/android/gms/ads/internal/overlay/zzf.class...
processing com/google/android/gms/ads/internal/overlay/zzg.class...
processing com/google/android/gms/ads/internal/overlay/zzh.class...
processing com/google/android/gms/ads/internal/overlay/zzi.class...
processing com/google/android/gms/ads/internal/overlay/zzj.class...
processing com/google/android/gms/ads/internal/overlay/zzk.class...
processing com/google/android/gms/ads/internal/overlay/zzl.class...
processing com/google/android/gms/ads/internal/overlay/zzm.class...
processing com/google/android/gms/ads/internal/overlay/zzn.class...
processing com/google/android/gms/ads/internal/overlay/zzo.class...
processing com/google/android/gms/ads/internal/overlay/zzp.class...
processing com/google/android/gms/ads/internal/overlay/zzq.class...
processing com/google/android/gms/ads/internal/overlay/zzr.class...
processing com/google/android/gms/ads/internal/overlay/zzs.class...
processing com/google/android/gms/ads/internal/overlay/zzt.class...
processing com/google/android/gms/ads/internal/overlay/zzu.class...
processing com/google/android/gms/ads/internal/overlay/zzv.class...
processing com/google/android/gms/ads/internal/overlay/zzw.class...
processing com/google/android/gms/ads/internal/overlay/zzx.class...
processing com/google/android/gms/ads/internal/overlay/zzy.class...
processing com/google/android/gms/ads/internal/overlay/zzz.class...
processing com/google/android/gms/ads/internal/zza.class...
processing com/google/android/gms/ads/internal/zzaa.class...
processing com/google/android/gms/ads/internal/zzab.class...
processing com/google/android/gms/ads/internal/zzac.class...
processing com/google/android/gms/ads/internal/zzad.class...
processing com/google/android/gms/ads/internal/zzae.class...
processing com/google/android/gms/ads/internal/zzaf.class...
processing com/google/android/gms/ads/internal/zzag.class...
processing com/google/android/gms/ads/internal/zzah.class...
processing com/google/android/gms/ads/internal/zzai.class...
processing com/google/android/gms/ads/internal/zzaj.class...
processing com/google/android/gms/ads/internal/zzak.class...
processing com/google/android/gms/ads/internal/zzal.class...
processing com/google/android/gms/ads/internal/zzam.class...
processing com/google/android/gms/ads/internal/zzan.class...
processing com/google/android/gms/ads/internal/zzao.class...
processing com/google/android/gms/ads/internal/zzap.class...
processing com/google/android/gms/ads/internal/zzaq.class...
processing com/google/android/gms/ads/internal/zzar.class...
processing com/google/android/gms/ads/internal/zzas.class...
processing com/google/android/gms/ads/internal/zzat.class...
processing com/google/android/gms/ads/internal/zzau.class...
processing com/google/android/gms/ads/internal/zzav.class...
processing com/google/android/gms/ads/internal/zzaw.class...
processing com/google/android/gms/ads/internal/zzax.class...
processing com/google/android/gms/ads/internal/zzay.class...
processing com/google/android/gms/ads/internal/zzaz.class...
processing com/google/android/gms/ads/internal/zzb.class...
processing com/google/android/gms/ads/internal/zzba.class...
processing com/google/android/gms/ads/internal/zzbb.class...
processing com/google/android/gms/ads/internal/zzbc.class...
processing com/google/android/gms/ads/internal/zzbd.class...
processing com/google/android/gms/ads/internal/zzbe.class...
processing com/google/android/gms/ads/internal/zzbf.class...
processing com/google/android/gms/ads/internal/zzbg.class...
processing com/google/android/gms/ads/internal/zzbh.class...
processing com/google/android/gms/ads/internal/zzbi.class...
processing com/google/android/gms/ads/internal/zzbj.class...
processing com/google/android/gms/ads/internal/zzbk.class...
processing com/google/android/gms/ads/internal/zzbl.class...
processing com/google/android/gms/ads/internal/zzbm.class...
processing com/google/android/gms/ads/internal/zzbn.class...
processing com/google/android/gms/ads/internal/zzbo.class...
processing com/google/android/gms/ads/internal/zzbp.class...
processing com/google/android/gms/ads/internal/zzbq.class...
processing com/google/android/gms/ads/internal/zzbr.class...
processing com/google/android/gms/ads/internal/zzbs.class...
processing com/google/android/gms/ads/internal/zzbt.class...
processing com/google/android/gms/ads/internal/zzbu.class...
processing com/google/android/gms/ads/internal/zzbv.class...
processing com/google/android/gms/ads/internal/zzbw.class...
processing com/google/android/gms/ads/internal/zzbx.class...
processing com/google/android/gms/ads/internal/zzc.class...
processing com/google/android/gms/ads/internal/zzd.class...
processing com/google/android/gms/ads/internal/zze.class...
processing com/google/android/gms/ads/internal/zzf.class...
processing com/google/android/gms/ads/internal/zzg.class...
processing com/google/android/gms/ads/internal/zzh.class...
processing com/google/android/gms/ads/internal/zzi.class...
processing com/google/android/gms/ads/internal/zzj.class...
processing com/google/android/gms/ads/internal/zzk.class...
processing com/google/android/gms/ads/internal/zzl.class...
processing com/google/android/gms/ads/internal/zzm.class...
processing com/google/android/gms/ads/internal/zzn.class...
processing com/google/android/gms/ads/internal/zzo.class...
processing com/google/android/gms/ads/internal/zzp.class...
processing com/google/android/gms/ads/internal/zzq.class...
processing com/google/android/gms/ads/internal/zzr.class...
processing com/google/android/gms/ads/internal/zzs.class...
processing com/google/android/gms/ads/internal/zzt.class...
processing com/google/android/gms/ads/internal/zzu.class...
processing com/google/android/gms/ads/internal/zzv.class...
processing com/google/android/gms/ads/internal/zzw.class...
processing com/google/android/gms/ads/internal/zzx.class...
processing com/google/android/gms/ads/internal/zzy.class...
processing com/google/android/gms/ads/internal/zzz.class...
ignored resource com/google/android/gms/dynamite/
ignored resource com/google/android/gms/dynamite/descriptors/
ignored resource com/google/android/gms/dynamite/descriptors/com/
ignored resource com/google/android/gms/dynamite/descriptors/com/google/
ignored resource com/google/android/gms/dynamite/descriptors/com/google/android/
ignored resource com/google/android/gms/dynamite/descriptors/com/google/android/gms/
ignored resource com/google/android/gms/dynamite/descriptors/com/google/android/gms/ads/
ignored resource com/google/android/gms/dynamite/descriptors/com/google/android/gms/ads/dynamite/
processing com/google/android/gms/dynamite/descriptors/com/google/android/gms/ads/dynamite/ModuleDescriptor.class...
ignored resource com/google/android/gms/internal/
processing com/google/android/gms/internal/zzaaa.class...
processing com/google/android/gms/internal/zzaab.class...
processing com/google/android/gms/internal/zzaac.class...
processing com/google/android/gms/internal/zzaad.class...
processing com/google/android/gms/internal/zzaae.class...
processing com/google/android/gms/internal/zzaaf.class...
processing com/google/android/gms/internal/zzaag.class...
processing com/google/android/gms/internal/zzaah.class...
processing com/google/android/gms/internal/zzaai.class...
processing com/google/android/gms/internal/zzaaj.class...
processing com/google/android/gms/internal/zzaak.class...
processing com/google/android/gms/internal/zzaal.class...
processing com/google/android/gms/internal/zzaam.class...
processing com/google/android/gms/internal/zzaan.class...
processing com/google/android/gms/internal/zzaao.class...
processing com/google/android/gms/internal/zzaap.class...
processing com/google/android/gms/internal/zzaaq.class...
processing com/google/android/gms/internal/zzaar.class...
processing com/google/android/gms/internal/zzaas.class...
processing com/google/android/gms/internal/zzaat.class...
processing com/google/android/gms/internal/zzaau.class...
processing com/google/android/gms/internal/zzaav.class...
processing com/google/android/gms/internal/zzaaw.class...
processing com/google/android/gms/internal/zzaax.class...
processing com/google/android/gms/internal/zzaay.class...
processing com/google/android/gms/internal/zzaaz.class...
processing com/google/android/gms/internal/zzaba.class...
processing com/google/android/gms/internal/zzabb.class...
processing com/google/android/gms/internal/zzabc.class...
processing com/google/android/gms/internal/zzabd.class...
processing com/google/android/gms/internal/zzabe.class...
processing com/google/android/gms/internal/zzabf.class...
processing com/google/android/gms/internal/zzabg.class...
processing com/google/android/gms/internal/zzabh.class...
processing com/google/android/gms/internal/zzabi.class...
processing com/google/android/gms/internal/zzabj.class...
processing com/google/android/gms/internal/zzabk.class...
processing com/google/android/gms/internal/zzabl.class...
processing com/google/android/gms/internal/zzabm.class...
processing com/google/android/gms/internal/zzabn.class...
processing com/google/an<message truncated>
Assets/Plugins/Android中的aar/jar文件列表:
play-services-ads-11.2.2
play-services-ads-lite-11.2.2
play-services-auth-10.2.6
play-services-auth-base-10.2.6
play-services-base-10.2.6
play-services-basement-11.2.2
play-services-drive-10.2.6
play-services-games-10.2.6
play-services-gass-11.2.2
play-services-nearby-10.2.6
play-services-tasks-10.2.6
support-annotations-25.2.0
support-compat-25.2.0
support-core-ui-25.2.0
support-core-utils-25.2.0
support-fragment-25.2.0
support-media-compat-25.2.0
support-v4-25.2.0
最佳答案
好的,我解决了。
我发现您需要每个 aar 文件的相同版本,但我把版本搞混了。 (例如,我有 play-services-ads-11.2.0 和 play-services-basement-10.2.0。)
然后我发现 Play Services Resolver 根据给定插件的 ...Dependencies.xml
文件下载这些文件。就我而言,这些是GoogleMobileAdsDependencies.xml
和 GPGSDependencies.xml
。我打开了它们并在 androidPackage
标签中查找版本号。在第一个文件中是 11.2.0,在第二个文件中是 10+。我将所有事件更改为最新版本,即 11.4.0。 (我从这里得到信息:https://developers.google.com/android/guides/setup。)
我保存了文件,然后构建成功了。请注意,每次再次添加这些插件时都必须进行此修改。 (如果您重置或只是升级它们。)
关于android - Unity 与 Admob 和 Google Play 服务冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46309132/
在撰写本文时,Unity 有一个名为 Unity LTS 2017.4.12f1 的版本,Unity 的最新版本是 2018.2.11 我知道 Unity LTS 应该是稳定版本,但这是否意味着 Un
我需要 Unity 来捕获所有按键,即使 Unity 没有焦点。 我尝试过使用: Input.KeyPress() 但这似乎只有在 Unity 拥有用户输入焦点的情况下才有效。我需要它在没有焦点时工作
我正在尝试统一实现一个TCP服务器。我正在使用 unity pro 3.5,当我在场景中运行此代码时,unity 挂起,完全没有响应,直到我用任务管理器杀死它。 using UnityEngine;
我想问一下,使用新的unity ads 2.0与unity ads相比,收入有什么区别 Unity Ads Unity Ads 2.0 最佳答案 Unity 广告支持 Unity 4.2.2 或更高版
当我运行我的应用程序时,我希望 Unity 打开两个窗口。 window 将有不同的摄像头,但两者都会看到同一个世界。 这样的事情可能吗? (我还没有找到任何证据表明这一点) 我知道我可以通过两个 U
我使用Unity Hub下载了最新的Unity编辑器,它对于编辑器、文档和语言包运行良好,但无法下载android构建支持。刚刚告诉我这两天下载失败很多次。 所以我从网页下载了UnitySetup-A
我使用Unity Hub下载了最新的Unity编辑器,它对于编辑器、文档和语言包运行良好,但无法下载android构建支持。刚刚告诉我这两天下载失败很多次。 所以我从网页下载了UnitySetup-A
我今天已将我的项目升级到 Prism 6.3.0 和 Unity 5.3.1。在此之前,我有 Prism 5 和 Unity 4。 现在我遇到了 Prism.Unity.UnityBootstrapp
Unity 中是否有与 StructureMap 中的 Registry 类等效的内容? 我喜欢考虑一个层/组件/库来自行配置它 - 从而填充容器。所以“父”层只需要知道注册类。 最佳答案 不,没有。
我似乎无法在任何地方找到 Microsoft.Practices.Unity.StaticFactory.dll。 还有其他注册静态工厂的方法吗? 寻找这样的东西 container.Register
是否可以统一尝试所有已定义的构造函数,从参数最多的构造函数到最不具体的构造函数(默认构造函数)? 编辑 我的意思是说: foreach (var constructor in concrete.Get
我有一个正在运行且运行良好的 Unity 应用程序,但我们目前正在通过对所有编译警告采取行动来清理我们的代码。 由于过时的 Microsoft.Practices.Unity.Configuratio
我正在使用 Visual Studio Code 在 Unity 中编写脚本。在“编辑”-“首选项”-“外部工具”-“外部脚本编辑器”下,我也选择了 VS Code。 打开脚本工作正常,但是当我尝试通
因此,我很确定这不是提出此类问题的正确论坛,因此我非常感谢有人将我链接到针对此问题的更好论坛(如果需要)。 我的问题: 在 Unity Hub 中,我进行了设置,以便 Unity 编辑器应下载到我的硬
问题:即使在 Cardboard 相机范围内,我也无法在任何地方看到我的 UI 文本。 截图: 我使用的是Unity 5.4.0b21版本,有人说可以通过降级到Unity 5.3版本来修复。 但是,我
我正在开发一个 Unity 项目,我正在使用 Google VR SDK for Unity 和 FirebaseMessaging.unitypackage 适用于 Unity 的 Firebase
好吧,在谷歌、这里和几个 ASP/MVC 论坛上搜索之后,我一定要问我到底做错了什么。 我的应用程序有一个良好的开端,对 DI、IoC 有很好的理解,并且正在使用 Repository、Service
我们最近将项目中的 Microsoft Unity 从 3.5.1404 版本升级到 5.8.6。在我们的代码中只做了一些小的调整,这次升级似乎很容易。它毫无问题地解决了我们所有注册的实例。但是,我们
我正在弄清楚使用 Unity 应用程序 block 时的意外行为。我有项目 A 作为我的启动项目。 项目 A 具有对项目 B 的项目引用,而项目 B 具有对项目 C 的项目引用。 项目 A 使用 un
我将 Unity 与 MVC 和 NHibernate 结合使用。不幸的是,我们的 UnitOfWork 驻留在不同的 .dll 中,并且它没有默认的空 .ctor。这是我注册 NHibernate
我是一名优秀的程序员,十分优秀!