繁体   English   中英

为什么我的IntelliJ插件未在Android Studio中显示

[英]Why my IntelliJ plugin not showing in Android Studio

我刚刚为IntelliJ平台开发了JSON Parser插件。 我在JetBrains上发布了它。

在Android Studio中的插件存储库中搜索时,找不到我的插件。 但是它显示在IntelliJ社区版中(我目前正在使用它)。

以下是我的plugin.xml

<idea-plugin>
<id>com.godwin.json.parser</id>
<name>Json Parser</name>
<version>1.0</version>
<vendor email="godwinjoseph.k.com">Godwin</vendor>

<description><![CDATA[
  Simple JSON Parser is an IntelliJ IDE plugin for validation and formatting JSON string<br>
]]></description>

<change-notes><![CDATA[
  <h2>Version 1.0</h1>
  Parse VALID JSON string only.
]]>
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="173.0"/>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
     on how to target different products -->
<!-- uncomment to enable plugin in all products
<depends>com.intellij.modules.lang</depends>
-->


<extensions defaultExtensionNs="com.intellij">
    <!-- Add your extensions here -->
    <toolWindow id="Json Parser" anchor="right"
                factoryClass="com.jsonparse.ParserToolWindowFactory"/>
</extensions>

<project-components>
    <component>
        <implementation-class>com.jsonparse.ParserComponent</implementation-class>
    </component>
</project-components>

但是如果我手动安装(从本地安装),它在Android Studio中工作正常

提前致谢。

正如您在已发布的plugin.xml的注释以及已上传的插件的更新页面中所看到的那样,假定该插件仅与IntelliJ IDEA兼容,因为它没有指定任何依赖项。 您需要在plugin.xml中取消注释<depends>标记,然后重新上传插件。

如果您的插件依赖于Java相关的IDE功能,并且您希望它仅在IntelliJ IDEA和Android Studio中可用,请改用以下depends标记:

<depends>com.intellij.modules.java</depends>

暂无
暂无

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

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