一,出现问题
之前在网上找的帖子,编译了一把,并且通过了,但是过了很久重新回来运行项目结果出现了问题。
问题报错为:
自定义项目配置为:
dependencies {
compile{project(":spring-core")}
compile{project(":spring-context")}
testCompile group: 'junit', name: 'junit', version: '4.12'
}
二,解决对策:
网上百度了n久,在Androidxx的时候找到了,原来是说写法有问题,
改为如下:
dependencies {
compile project(':spring-core')
compile project(':spring-context')
testCompile group: 'junit', name: 'junit', version: '4.12'
}
编译即过,原文链接:
https://blog.youkuaiyun.com/u010665691/article/details/44513531
ps:题外话,个人做的笔记,只为了下次遇见同样的问题,不翻车。
1.如果编译提示,没有spring.io权限xxx,这样的英文。
把spring源码最左下角的配置文件打开:
注释掉:id “io.spring.ge.conventions” version “0.0.7”
再次编译,就不会提示这个了。