IDEA错误解决

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

  1. 在Modules设置里勾选”Inherit project compile path”
    在这里插入图片描述
  2. 设置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>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值