我正在尝试使用IntelliJ中新的android gradle插件,但我似乎无法使用新的gradle插件构建我的项目。
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - IntelliJ IDEA 13.1.5 Build #IU-135.1289
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - JDK: 1.8.0_05
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - VM: Java HotSpot(TM) 64-Bit Server VM
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - Vendor: Oracle Corporation
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - OS: Windows 8
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - Last Action: ShowSettings
2014-11-03 16:40:13,130 [ 937679] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 5 ms
2014-11-03 16:40:13,130 [ 937679] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2014-11-03 16:40:13,130 [ 937679] INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2014-11-03 16:41:02,813 [ 987362] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_05
2014-11-03 16:41:02,815 [ 987364] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_05
2014-11-03 16:41:02,821 [ 987370] INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [-Pandroid.injected.build.model.only=true, -Pandroid.injected.invoked.from.ide=true, --init-script, C:\Users\ionut.negru\AppData\Local\Temp\ijinit8822454065314970200.gradle]
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - Failed to set up Android modules in project 'MyApplication'
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: SourceProvider.getJniDirectories().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33)
at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:240)
at com.sun.proxy.$Proxy128.getJniDirectories(Unknown Source)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.addSourceFolder(ContentRootModuleCustomizer.java:170)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.addSourceFolders(ContentRootModuleCustomizer.java:120)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.setUpContentEntries(ContentRootModuleCustomizer.java:85)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.setUpContentEntries(ContentRootModuleCustomizer.java:45)
at com.android.tools.idea.gradle.customizer.AbstractContentRootModuleCustomizer.customizeModule(AbstractContentRootModuleCustomizer.java:56)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.customizeModule(AndroidProjectDataService.java:191)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.access$100(AndroidProjectDataService.java:64)
at com.android.tools.idea.gradle.service.AndroidProjectDataService$1.run(AndroidProjectDataService.java:126)
at com.intellij.openapi.command.WriteCommandAction$Simple.run(WriteCommandAction.java:168)
at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:115)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:112)
at com.intellij.openapi.command.WriteCommandAction.access$000(WriteCommandAction.java:33)
at com.intellij.openapi.command.WriteCommandAction$1.run(WriteCommandAction.java:80)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:85)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.doImport(AndroidProjectDataService.java:114)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.importData(AndroidProjectDataService.java:97)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:90)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1$1.run(ExternalSystemUtil.java:766)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:329)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1.execute(ExternalSystemUtil.java:763)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5$1.run(ExternalSystemApiUtil.java:364)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5.run(ExternalSystemApiUtil.java:361)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
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)
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - IntelliJ IDEA 13.1.5 Build #IU-135.1289
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - JDK: 1.8.0_05
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - VM: Java HotSpot(TM) 64-Bit Server VM
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - Vendor: Oracle Corporation
2014-11-03 16:41:07,003 [ 991552] ERROR - vice.AndroidProjectDataService - OS: Windows 8
2014-11-03 16:41:07,003 [ 991552] ERROR - vice.AndroidProjectDataService - Last Action: ExternalSystem.RefreshAllProjects
2014-11-03 16:41:07,290 [ 991839] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 6 ms
2014-11-03 16:41:07,290 [ 991839] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2014-11-03 16:41:07,290 [ 991839] INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
[更新]经过一些更多的研究,我发现从另一个SO问题,IntelliJ没有跟上android gradle插件。AS和IntelliJ之间有一些延迟。更多信息可以在这里找到:IntelliJ idea中包含的Android插件版本是什么?在@Scott Barta的回应上。
看起来IntelliJ13.1.5只支持com.android.tools.build:gradle:0.13.0。也许在几天/几周后,IntelliJ会从AS中提取android gradle插件,并将其推入他们的产品中。
这是UnsupportedMethodException Android Studio 0.8.9的副本
您需要将Android Studio升级到0.9或者将Android插件降级到低于14
buildscript {
repositories {
mavenCentral()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:0.13.+'
}
}
我执行了添加checkstyle的步骤 null
主要内容:Intellij Idea 插件安装,Intellij Idea 插件类别,Intellij Idea 插件库插件是一种向现有应用程序添加特定功能的软件。在 IntelliJ IDEA 中,插件是其核心功能的扩展。更多的插件为我们的应用程序提供了更多的功能,但不利于性能。与 IDE 中安装的插件一样多,它会降低 IDE 的性能。 Intellij Idea 插件安装 转到File-> Setting-> Plugins。窗口画面在下方打开。 在这个窗口中,我们可以看到 IDE 中安装的
我已经在Intellij Enterprise13中安装了SonarQube插件。当我按照配置说明:https://github.com/sonar-intellij-plugin/sonar-intellij-plugin时,没有发现任何检查错误或警告,即使代码明显违反了Sonar服务器返回给Intellij插件的规则,这些规则在“检查”配置文件中可见。 我有一个多模块的SpringMVC项目,
几个月来,我一直在使用IntelliJ IDEA Community 2018.1,严格来说就是Java和Groovy项目。我刚开始导入我的第一个(有史以来)Scala/Gradle项目,当它加载时,我注意到IDE并没有真正“加载”Scala源代码(编译它们等等)。如果我打开一个Scala源文件,它只是在“文本编辑器模式”下出现,如果我写了一行代码,这是一个明显的编译器错误,IntelliJ根本没
最新版本请访问: https://codesmagic.com/ Intellij Idea Mybatis插件主要功能: 提供Mapper接口与配置文件中对应SQL的导航 编辑XML文件时自动补全 根据Mapper接口, 使用快捷键生成xml文件及SQL标签 ResultMap中的property支持自动补全,支持级联(属性A.属性B.属性C) 快捷键生成@Param注解 XML中编辑SQL时,
提前谢了。