当前位置: 首页 > 知识库问答 >
问题:

无导航编辑器-Android Studio Canary 15和16

昝光临
2023-03-14

我为此绞尽脑汁。我正在尝试重构我的应用程序,以使用Android Studio Canary 15中新的导航架构组件,创建xml文件时我得到的只是以下消息,编辑器从未出现;

我已经卸载并重新安装了我安装的Android Studio和Android Studio Canary 15(位于C:\Program Files\Android\Android Studio和C:\Program Files\Android\Android Studio Canary以及C:\Users\[username]\.AndroidStudio文件夹中的所有相关组件)。

知道为什么这行不通吗?

编辑:好的,现在有一条错误消息,当我禁用Android支持插件时,我会收到更多错误消息,告诉我重新启用插件!

编辑2:我更新到金丝雀16,问题仍然存在。

26/05/2018
18:22   Plugin Error
            Problems found loading plugins:
            Plugin "Android Games" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Android NDK Support" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Android APK Support" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Google Developers Samples" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Google Cloud Tools For Android Studio" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Test Recorder" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Firebase Testing" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Google Services" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Firebase Services" was not loaded: required plugin "Android Support" is disabled.
            Plugin "App Links Assistant" was not loaded: required plugin "Android Support" is disabled.
            Plugin "Fire... (show balloon)

18:23   Error Loading Project: Cannot load 3 facets Details...

18:23   Plugins Suggestion
            Plugin supporting features (Run Configuration[Android App], Facet[android, android-gradle]) is currently disabled.
            Enable plugins...
            Ignore Unknown Features
null
java.lang.IllegalStateException
    at com.android.tools.idea.naveditor.scene.decorator.NavSceneDecoratorFactory.<init>(NavSceneDecoratorFactory.kt:39)
    at com.android.tools.idea.naveditor.scene.NavSceneManager.getSceneDecoratorFactory(NavSceneManager.java:510)
    at com.android.tools.idea.common.scene.SceneComponent.<init>(SceneComponent.java:116)
    at com.android.tools.idea.common.scene.SceneManager.createHierarchy(SceneManager.java:164)
    at com.android.tools.idea.naveditor.scene.NavSceneManager.createHierarchy(NavSceneManager.java:265)
    at com.android.tools.idea.common.scene.SceneManager.update(SceneManager.java:121)
    at com.android.tools.idea.naveditor.scene.NavSceneManager.requestRender(NavSceneManager.java:340)
    at com.android.tools.idea.common.surface.DesignSurface.requestRender(DesignSurface.java:1291)
    at com.android.tools.idea.naveditor.surface.NavDesignSurface.layoutContent(NavDesignSurface.java:227)
    at com.android.tools.idea.common.surface.DesignSurface.setScale(DesignSurface.java:730)
    at com.android.tools.idea.common.surface.DesignSurface.setScale(DesignSurface.java:683)
    at com.android.tools.idea.common.surface.DesignSurface.zoom(DesignSurface.java:571)
    at com.android.tools.idea.naveditor.surface.NavDesignSurface.zoom(NavDesignSurface.java:402)
    at com.android.tools.idea.common.surface.DesignSurface.zoom(DesignSurface.java:513)
    at com.android.tools.idea.common.surface.DesignSurface.zoomToFit(DesignSurface.java:631)
    at com.android.tools.idea.naveditor.surface.NavDesignSurface.refreshRoot(NavDesignSurface.java:521)
    at com.android.tools.idea.naveditor.surface.NavDesignSurface.getCurrentNavigation(NavDesignSurface.java:233)
    at com.android.tools.idea.naveditor.scene.NavSceneManager.getRoot(NavSceneManager.java:241)
    at com.android.tools.idea.common.scene.SceneManager.update(SceneManager.java:115)
    at com.android.tools.idea.naveditor.scene.NavSceneManager.requestRender(NavSceneManager.java:340)
    at com.android.tools.idea.common.surface.DesignSurface.requestRender(DesignSurface.java:1291)
    at com.android.tools.idea.naveditor.surface.NavDesignSurface.layoutContent(NavDesignSurface.java:227)
    at com.android.tools.idea.common.surface.DesignSurface.addModel(DesignSurface.java:310)
    at com.android.tools.idea.common.surface.DesignSurface.setModel(DesignSurface.java:368)
    at com.android.tools.idea.common.editor.NlEditorPanel.initNeleModelOnEventDispatchThread(NlEditorPanel.java:162)
    at com.android.tools.idea.common.editor.NlEditorPanel.lambda$null$4(NlEditorPanel.java:149)
    at com.intellij.openapi.project.DumbServiceImpl.lambda$smartInvokeLater$7(DumbServiceImpl.java:430)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:779)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:720)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

编辑3:我的导航图的主图表。“xml”在下面;

<?xml version="1.0" encoding="utf-8"?>

<navigation xmlns:android="http://schemas.android.com/apk/res/android">
</navigation>

共有3个答案

宗政兴发
2023-03-14

张贴,因为我不能添加评论(声誉)@Levi Moreira这对我来说是一个很好的起点,但我不得不删除一些额外的文件。我的情况是:

-想法/现金-项目中的文件夹

-库/-所有导航库

并启动Android Studio。

吴安和
2023-03-14

转到IDE设置,只需禁用和启用Android支持插件,如下所示:

>

  • Windows(和Linux):转到文件---

    Mac:Android Studio---

    https://imgs.xnip.cn/cj/n/31/e50f03e8-fb3a-487e-949a-a1eab241dcc7.png" width="100%" height="100%" />

  • 何哲
    2023-03-14

    您有测试助手依赖,请尝试删除它。它和导航编辑器有问题

    androidTestImplementation "android.arch.navigation:navigation-testing:$nav_version"
    

    然后点击重启并清除缓存。

     类似资料:
    • 如何使底部导航栏在Android Studio的visual XML编辑器中消失?我已经将AppTheme设置为NoActionBar。导航栏很烦人,因为我的手机没有导航栏,所以当我在可视编辑器中的应用程序底部放置一些东西时(https://i.imgur.com/1QvdIOd.png),当我在手机上运行应用程序时会发生这种情况:https://i.imgur.com/Qk5S1Oe.jpg.谁

    • 我找到了完美的下拉导航栏代码。但我不得不根据自己的需要编辑它。原始完整代码位于此处:https://github.com/vandoan/elli/blob/master/dropdownnav.html,其外观如下:http://codepen.io/xia-lj/pen/kdkoxw HTML: CSS: JS: 我想要的是:下拉导航栏,就像在例子,但有三个按钮“历史”,“哲学”,“物理”。并

    • 导航器(navigator)是显示在主图下方的用来展示所有数据的数据列小图形,它提供对整个图表进行缩放、平移操作。 导航器默认显示的 Highstock 中的第一个数据列,可以使用 series.showInNavigator 来指定指定需要显示在导航器中的数据列 series: [{ showInNavigator: false }, { showInNavigator: tru

    • 编辑器和IDE Clojure plugins for many editors and IDEs are available. For emacs there is clojure-mode and swank-clojure, both at https://github.com/technomancy/swank-clojure . swank-clojure uses the Superi

    • 我需要一些关于react原生应用程序的社区建议。我是一个全新的人,不理解其中的一些基本区别。 关于反应本地文档创建StackNavigator的示例建议如下:从“反应导航堆栈”导入{createStackNav导航仪}; 我发现很多人使用下面的样式导入{堆栈导航器,Tab导航器}从“反应导航”; 为什么人们使用以上两种不同的风格?哪一个更合适,为什么? react-navigation-stack

    • 我在eclipse中创建了一个java项目,它会自动从外部目录中获取所有. drl文件并执行该目录中的所有规则。因此,这可以随时执行动态添加新规则。现在,我想使用引导规则编辑器来帮助非技术用户将新规则添加到该目录中,而不是创建一个新的drool文件。我已经开始使用drools-workbench,但我仍然不知道如何将这个eclipse项目与drools-wb中可用的引导规则编辑器功能集成。 是否有