IntelliJ IDEA 中包含的 Android 插件版本是什么? [英] What is the Android plugin version included in IntelliJ IDEA?

查看:54
本文介绍了IntelliJ IDEA 中包含的 Android 插件版本是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

...以及如何找到它(以权威的方式)?

在 Android Studio 0.8.11 中:当我检查相同时,它显示 10.0.8.11.对应于 http://tools.android.com/recenthttp://developer.android.com/sdk/installing/studio.html.

In Android Studio 0.8.11: when I check the same it shows 10.0.8.11. which corresponds to http://tools.android.com/recent and http://developer.android.com/sdk/installing/studio.html.

在 IDEA EAP 14 中:当我转到设置 > 插件 > Android 支持时,显示的版本号是 10.0,它与 IDEA/Android Studio/SDK/API 的最新版本不对应.v10 中的所有上述内容都太旧了,无法成为前沿软件中的默认包.

In IDEA EAP 14: when I go to Settings > Plugins > Android Support the version number shown is 10.0 which doesn't correspond to a recent version of IDEA/Android Studio/SDK/API. All of the above at v10 are too old to be the default bundle in a bleeding edge software.

我检查了 .jar 文件的 META-INF,但没有运气.一些 .jar 名称提供了线索,这是我能够推断出的:

I checked the .jar files' META-INF, but no luck. Some .jar names give a clue, here's what I was able to deduce:

╔════════════════════════════════╦═══════════════╦═══════════════╦════════════════╗
║                                ║ IntelliJ IDEA ║ IntelliJ IDEA ║ Android Studio ║
╠════════════════════════════════╬═══════════════╬═══════════════╬════════════════╣
║ Version                        ║ 13.1.5        ║ 14 EAP        ║ 0.8.11         ║
║ Build                          ║ IC-135.1289   ║ IC-138.2458.8 ║ AI-135.1446794 ║
║ Date                           ║ 2014-09-30    ║ 2014-09-25    ║ 2014-09-18     ║
║ builder-model.jar              ║ 0.12.0        ║ 0.12.0        ║ 0.13.0         ║
║ Android Support Plugin version ║ 10.0          ║ 10.0          ║ 10.0.8.11      ║
║ IntelliJ IDEA equivalent       ║ 13.1.5        ║ 14.x          ║ 13.1.5 RC**    ║
║ Android Studio equivalent      ║ 0.8.?*        ║ 0.8.?*        ║ 0.8.11         ║
╚════════════════════════════════╩═══════════════╩═══════════════╩════════════════╝

* 基于 Gradle 插件Android Studio Beta
**我们已经合并了 IntelliJ 13.1.5 RC 的最新更改

这些版本看起来相差不大,我想知道 0.8.? 版本到底是什么.我试图在 IDEA 14 文件夹中交换 plugins/android(并删除重复的 EP:Designer.customizations),但它在 NoSuchMethodError 中闪闪发光s 启动后!

The versions doesn't look that far apart, I'm wondering what the 0.8.? version are exactly. I tried to swap plugins/android (and remove the duplicate EP: Designer.customizations) in the IDEA 14 folder, but it's sparkling with NoSuchMethodErrors after startup!

推荐答案

这很复杂,这将是一个很长的答案.不幸的是,我们没有一个好的简短答案,因为我们没有以有意义的方式对插件进行版本控制.这是我们应该做的.

It's complicated, and this will be a long answer. Unfortunately, we don't have a good short answer, because we don't do versioning of the plugin in a way that makes sense. This is something we should do.

要回答这个问题,需要查看 JetBrains 的不同 IntelliJ 版本的提交日志.如果我下载了 IntelliJ CE 附带的 Android 插件的 git 存储库(有关详细信息的更长答案,请参见下文),我会看到:

To answer the question requires looking through JetBrains' commit logs for their different versions of IntelliJ. If I download the git repository for the Android plugin that ships with IntelliJ CE (see below for the longer answer with more details), I see this:

  • 13.1.5:大致相当于 Android Studio 0.8.6.需要并支持 Android Gradle 插件 v0.12.
  • 14:它跟踪最新版本的 Android Studio,尽管它可能落后一周.确切的版本将取决于 JetBrains 在切割给定版本之前从 Android 团队中提取插件源代码的时间.它需要 Android Gradle 插件 v0.12 并支持 0.13.

进入详细解释:

Android 构建工具团队与 JetBrains 进行双向代码共享.Android Studio 建立在 IntelliJ 代码库的 135 分支之上(它解释了您在其内部版本号中看到的 IC-135),因此 Android Studio 是从 IJ 13.1.5 派生而来的,其中有一些尚未经过的修改和补丁上游.我们不打算在达到 1.0 时迁移到 138 分支,因此即使在发布时它仍将基于 13,而不是基于 14.

The Android Build Tools team does 2-way code sharing with JetBrains. Android Studio is built on top of the 135 branch of the IntelliJ codebase (which explains the IC-135 you see in its build number), so Android Studio is derived from IJ 13.1.5, with some modifications and patches that haven't been upstreamed. We're not planning on moving to the 138 branch by the time we get to 1.0, so even at release it will still be 13-based, not 14-based.

在 JetBrains 方面,他们主要从 Android 对插件进行上游更改,但他们也有其他人在他们这边开发插件(这些更改会合并回 Android Studio 端).在 13 的生命周期中的这一点上,他们发布它的速度很慢,并且对他们引入 Android 插件的内容更加保守(为了稳定性),因此它不是完全最新的.他们发布主要产品中的错误修复而不是获取最新的 Android 插件.

On JetBrains' side, they mostly take upstream changes from Android for the plugin, but they also have folks working on the plugin on their side (and those changes get merged back down to the Android Studio end of things). At this point in 13's life cycle, they do releases of it slowly and are more conservative about what they pull into the Android plugin (in the interests of stability), so it's not completely up-to-date. They do releases for bug fixes in the main product and not to pick up the latest Android plugin.

一般来说,如果您运行的是 IJ 13,则可能无法仅升级您的 Android 插件.对插件的更改经常需要对底层平台进行更改;Android Studio 将接受这些更改,因为它的平台是随插件一起发布的,但 IJ 需要等到这些更改上传到上游.话虽如此,这些变化的速度现在已经很慢了,但它仍然会发生.

In general it's probably not possible to upgrade just your Android plugin if you're running IJ 13. Changes to the plugin frequently require changes to the underlying platform; Android Studio will pick up those changes because its platform is releases along with its plugin, but IJ will need to wait until those changes are upstreamed. Having said that the rate of these changes is quite slow now, but it still happens.

对于 14 EAP 版本,他们应该更快地从 Android 中拉取更改,以便构建应该更接近地反映 Android Studio 的当前状态,尽管这同样取决于他们执行这些拉取的频率.

For the 14 EAP release, they should be pulling changes from Android more rapidly, so that build should more closely reflect the current state of Android Studio, though again it depends on how often they do those pulls.

需要注意的是,我们在大多数情况下不会与 JetBrains 协调发布或代码拉取,因此给定的 14 EAP 版本将反映他们进行代码拉取时 Android 插件的当前状态.因此,它可能对应于 Android Studio 版本之间的某些状态.

It should be noted that we don't coordinate releases or code pulls with JetBrains for the most part, so a given release of 14 EAP will reflect the current state of Android plugin at the time they did the code pull. As such, it may correspond to some state in between Android Studio releases.

要回答评论中关于为什么 Android Studio 和 IntelliJ 是独立产品的问题:

To answer a question in the comments about why Android Studio and IntelliJ are separate products:

  • Android Studio 旨在为 Android 开发者提供定制化的简化体验.它侧重于 Gradle 构建系统(不鼓励尝试使用非基于 Gradle 的项目),并且删除了许多对 Android 开发者没有意义的功能和选项.
  • 对于想要更大灵活性的用户,我们鼓励他们使用 IntelliJ CE.
  • IntelliJ Ultimate Edition 是该产品的付费版本,具有非常强大的附加功能,对于需要这些功能的人来说,它是一个不错的选择.
  • IntelliJ 和 Android 插件最初是由 IntelliJ 开发的,它们都不会消失.Android 团队正在与 JetBrains 合作,以改进这两种产品对 Android 的支持,并提供 Android Studio 作为针对其特定受众的优化产品.

如果您希望在一个 IDE 中包含所有内容,那么您最好的选择可能是运行 IntelliJ CE 或 Ultimate.它应该具有 Android Studio 的所有重要功能,尽管在某些地方使用起来可能比较粗糙.如果您发现在 Android Studio 中无法正常工作但在 Android Studio 中可以正常工作的内容(尤其是与 Gradle 项目支持相关的内容),那么我们认为这是一个错误,因此请提交.

If you want everything in one IDE, then your best bet is to probably run IntelliJ CE or Ultimate. It should have all the important functionality of Android Studio, though it may be rougher to use in spots. If you find things that don't work right in it but do work in Android Studio (especially related to Gradle project support), then we consider it a bug, so please file it.

这篇关于IntelliJ IDEA 中包含的 Android 插件版本是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆