遇到一个巨坑 跑公司的一个项目,拉下来代码,跑不起来.发现maven一直报这个错 was cached in the local repository,resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced 然后去搜索了一下,基本上原因都说是本地缓存的内容不是最新的.推荐的方式有两种: 1.删除本地缓存的内容,重新导入依赖 2.命令行加 -U参数
今天在看Dan Lew大神的博客发现最新的文章就是 “Don't use dynamic versions for your dependencies” Everyone, please, to stop using dynamic versions for your dependencies. In Gradle, dynamic versions use the + sign like so: compile 'com.android.support:appcompat-v7:23.0.+'