简体   繁体   English

Unity:解决 Android 依赖项冻结问题。 无法导入任何插件

[英]Unity: Resolving Android Dependencies freeze. Cannot import any plug-in

I have a huge issue.我有一个很大的问题。 For some reason, I am unable to import almost any plug-in into my Unity project.出于某种原因,我几乎无法将任何插件导入到我的 Unity 项目中。 Whenever the import finishes, I get the Resolving Android Dependencies screen, which never actually resolves the issue.每当导入完成时,我都会看到 Resolving Android Dependencies 屏幕,该屏幕从未真正解决过问题。 I recently got this issue when I imported the Unity Mediation Plug-in and now I reinstalled my Android Studio, Java and Unity, which resulted in the same error but now even for plug-ins, which worked before.我最近在导入 Unity Mediation Plug-in 时遇到了这个问题,现在我重新安装了我的 Android Studio、Java 和 Unity,这导致了同样的错误,但现在甚至对于以前有效的插件也是如此。 I have no idea what to do.我不知道该怎么办。 After the reinstall, I had to downgrade my SDK tools to 25.0.5 or I couldn't build the project due to JAVA_HOME error in the Unity Editor.重新安装后,我不得不将我的 SDK 工具降级到 25.0.5,否则由于 Unity 编辑器中的 JAVA_HOME 错误,我无法构建项目。 Everything else is up-to-date.其他一切都是最新的。

Any help is appreciated.任何帮助表示赞赏。 在此处输入图片说明

Well...the problem was that my project folder had spaces in it.嗯...问题是我的项目文件夹中有空格。 If it was Test App, it should have been TestApp.如果它是Test App,它应该是TestApp。 When I created my project in Unity (Its my first project) I neglected the name of the Project is used as the folder name too.当我在 Unity 中创建我的项目(这是我的第一个项目)时,我忽略了项目名称也用作文件夹名称。 I understood how the whole engine works inside out in hopeless attempts to fix it, but never did I suspect it was so simple.我明白整个引擎是如何从里到外工作的,试图修复它,但我从未怀疑过它如此简单。

Not sure if this will help or cause more issues -- as I will find out soon I guess, but if you already have Play Services package installed along with the Play Services Resolver that comes with it...when importing the AdMobs package make sure that you uncheck the Play Services Resolver before import since it is already installed.不确定这是否会有所帮助或导致更多问题——我猜我很快就会发现,但如果你已经安装了 Play 服务包以及它附带的 Play 服务解析器......导入 AdMobs 包时,请确保在导入之前取消选中 Play Services Resolver,因为它已经安装。 You can manage/update the Play Services Resolver from the Assets menu if needed I believe.如果需要,我相信您可以从“资产”菜单管理/更新播放服务解析器。

In ProjectSettings you can remove (I suggest rename) the AndroidResolverDependencies.xml then restart unity.在 ProjectSettings 中,您可以删除(我建议重命名)AndroidResolverDependencies.xml,然后重新启动 unity。 I takes time but you can see jdk working, so wait and it fixes any problem.我需要时间,但你可以看到 jdk 工作,所以等待它解决任何问题。

Try going to Edit > Preferences > External Tools > Check/Uncheck the JDK/etc paths and close the window.尝试转到 Edit > Preferences > External Tools > Check/Uncheck the JDK/etc 路径并关闭窗口。 It can trigger the android dependency manager to continue.它可以触发android依赖管理器继续。 If not, go to Assets > External Dependency Manager > Android Resolver > Resolve.如果没有,请转到 Assets > External Dependency Manager > Android Resolver > Resolve。

Check both of the checkboxes I checked under Build Menu and it'll fix.选中我在 Build Menu 下选中的两个复选框,它会修复。

图片

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

相关问题 movetoElement冻结。 有没有办法验证它是否冻结 - The movetoElement get freeze. is there any way to verify if it freeze or no 在Eclipse中添加插件依赖项? - Adding Plug-in dependencies in Eclipse? 插件找不到ScalarFunctionMultiPageEditor - ScalarFunctionMultiPageEditor cannot be found by Plug-in 如何解决自定义Nutch插件的依赖关系? - How to resolve dependencies for custom Nutch plug-in? Eclipse 插件导出错误:“无法解析导入 javafx.embed.swt” - Error: "The import javafx.embed.swt cannot be resolved" on Eclipse plug-in export 步骤冻结。 当文件很大时,PoiItemreader 不读取 Excel 文件。 有什么建议吗? - Step freeze. PoiItemreader does not read excel file when the file is large. Any suggestion? Android Studio是否有单独的FindBugs插件? - Is there a separate FindBugs plug-in for Android Studio? eclipse rcp中的插件依赖性和lib之间有什么区别 - What is the difference between plug-in dependencies and lib in eclipse rcp 使用 Maven 管理 Eclipse 插件项目的依赖项 - Managing dependencies of a Eclipse plug-in project using Maven GoogleAdMob插件Unity。 解决Android依赖关系。 InvalidOperationException:StandardIn尚未重定向 - GoogleAdMob Plugin Unity. Resolving Android Dependencies. InvalidOperationException: StandardIn has not been redirected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM