IDEA Error:java: Compilation failed: internal java compiler error
解决办法很简单:File–>Setting…–>Build,Execution,Deployment–>Compiler–>Java Compiler 设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.8版本的。
Usage of API documented as @since 1.8+ less…
解决方法:File ->Project Structure->Project Settings -> Modules -> Module名称 -> Sources -> Language Level->可以看到当前并不是8,
fatal: remote origin already exists
解决办法:在本地工程目录下右击,选择Git Bash Here
然后:git remote rm origin
push to origin/master was rejected错误解决方案
解决办法:在本地工程目录下右击,选择Git Bash Here
git pull
git pull origin master
git pull origin master --allow-unrelated-histories
命令执行完毕后,在idea中重新push自己的项目,成功!!!
Cannot start compilation: the output path is not specified for module “Test”. Specify the out
- 在Modules设置里勾选”Inherit project compile path”
- 设置Project中的”Project compiler output”
选择”Project的路径”+”\out”,比如说我的就是
解决idea Language level默认为5.0问题
当工程为maven时,每次更新都会变成5.0,
解决方法
:
在pom.xml中增加
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>