Tag: 的IntelliJ 想法

IntelliJ IDEA与Junit 4.7“! 预计JUnit版本3.8或更高版本:“

当我尝试在IntelliJ IDEA中运行以下testing时,我收到消息: “!!! JUnit版本3.8或更高版本预计:” 应该指出的是,这是我在IntelliJ IDEA 9中开发的一个Android项目。 public class GameScoreUtilTest { @Test public void testCalculateResults() throws Exception { final Game game = new Game(); final Player player1 = new Player(); { final PlayedHole playedHole = new PlayedHole(); playedHole.setScore(1); game.getHoleScoreMap().put(player1, playedHole); } { final PlayedHole playedHole = new PlayedHole(); playedHole.setScore(3); game.getHoleScoreMap().put(player1, playedHole); } final GameResults gameResults […]

错误:未find默认活动

我将IntelliJ Idea 12.0.4升级到了12.10。 现在我的Android项目中的所有模块都给出了错误: 错误:未find默认活动 我恢复到12.0.4,它的工作原理。 有任何想法吗 ?? 我认为这可能涉及到一些插件没有安装导致唯一的其他事情本来可以是一个configuration,但我删除了configuration文件夹来确认,并没有改变任何东西。

在IntelliJ IDEA中运行时发生java.lang.ClassNotFoundException

我创build一个程序来处理数据库,并在IntelliJ IDEA中编译时出现以下错误。 有没有人为什么发生这种情况,我怎么能解决它?

JavaLaunchHelper类是在两个地方实现的

今天,我在macOS Sierra上升级了我的Intellij Idea,现在,当我在控制台上运行应用程序时,出现此错误: objc [3648]:类JavaLaunchHelper在/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java(0x10d19c4c0)和/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/目录/首页/ jre / lib / libinstrument.dylib(0x10ea194e0)。 其中一个将被使用。 哪一个是未定义的

IntelliJ检查给出了“无法parsing符号”,但仍然编译代码

平台:IntelliJ Community Edition 10.0.3 SDK:jdk1.6.0_21 操作系统:Windows 7 所以我有一个IntelliJ奇怪的情况,让我完全难住。 我设置了Maven项目,并在pom.xml文件中添加log4j作为依赖项。 IDEA检查运行良好,我的unit testing全部编译并运行。 然后我使用mvn install:install-file将hunnysoft的jmime库添加到我的本地maven仓库中,如下所示。 mvn install:install-file -Dfile=jmime.jar -DgroupId=jmime \ -DartifactId=jmime -Dversion=3.1.1e -Dpackaging=jar Maven在我的本地仓库中安装了这个jar文件。 然后我进入了IntelliJ的Settings => Maven => Repository Services并更新了我的本地仓库(这样IntelliJ就会重新编译仓库内容)。 最后,我将下面的依赖项添加到我的pom.xml文件中(仅在log4j依赖项之上)。 <dependency> <groupId>jmime</groupId> <artifactId>jmime</artifactId> <version>3.1.1e</version> </dependency> 我现在创build一个新的类如下: package com.stackoverflow.question; import org.apache.log4j.Logger; import com.hunnysoft.jmime.ByteString; import com.hunnysoft.jmime.Field; import com.hunnysoft.jmime.FieldBody; public class StackOverflowQuestion { public Field create(String name, String text) […]

IDEA:javac:source release 1.7需要目标版本1.7

当运行一个JUnittesting,使用IntelliJ IDEA,我得到了 我怎样才能纠正这一点? 使用SDK 1.7 模块语言级别是1.7 Maven构build工作正常。 (这就是为什么我相信这在IDEAconfiguration问题)

将外部jar(lib / *。jar)添加到IntelliJ IDEA项目的正确方法

在IntelliJ IDEA中创build一个新的Java项目时,会创build以下目录和文件: ./projectname.iml ./projectname.ipr ./projectname.iws ./src/ 我想configurationIntelliJ IDEA以将依赖项JAR包含在./lib/*.jar中。 在IntelliJ IDEA中实现这一点的正确方法是什么?