发文章
发文工具
撰写
网文摘手
文档
视频
思维导图
随笔
相册
原创同步助手
其他工具
图片转文字
文件清理
AI助手
留言交流
在app目录下,打开build.gradle文件
在文件后面添加这么一段代码 即可
repositories { maven { url 'http://repo1./maven2' } }
除此之外,,还可以在
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.0'}
删除掉testCompile 'junit:junit:4.12',这个应该是用做测试类使用的
来自: 流浪的星星318 > 《待分类》
0条评论
发表
请遵守用户 评论公约
Android studio之Error:(23, 17) Failed to resolve: junit:junit:4.12
Android studio之Error:(23, 17) Failed to resolve: junit:junit:4.12 1 probleam.2 resolve method.// testCompile ''junit:...
maven出现:Failed to execute goal on project ...: Could not resolve dependencies for project ...
maven出现:Failed to execute goal on project ...: Could not resolve dependencies for project ... 版权声明:本文为博主原创文章,...
“Error:(3, 24) java: 程序包org.junit不存在”的3种解决方法
“Error:(3, 24) java: 程序包org.junit不存在”的3种解决方法。如下图 参考链接 方法三:手动导入jar包 进入File–>Project Structu...
IDEA报错,注解标红,提示Cannot resolve symbol xxx
IDEA报错,注解标红,提示Cannot resolve symbol xxx.IDEA报错,注解标红,提示Cannot resolve symbol xxx 的解决办法。重启之后,点击pom.xml,右键选择maven ,reimport ,依然未果的话选择重启电脑...
Maven nexus 安装nexus : wrapper | OpenSCManager failed
Maven nexus 安装nexus : wrapper | OpenSCManager failed.在win7中安装nexus时提示:wrapper | OpenSCManager failed - 拒绝访问。(0x5...
Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 .2 :compile ( default -compile) on project oecp: Compilation failure.
如何解决Maven: Failed to read artifact descriptor
如何解决Maven: Failed to read artifact descriptor如果你有子项目引用了父项目的POM,但没有在父项目POM目录下执行安装操作,这个问题就会出现。
DPRK fails in missile test
DPRK fails in missile test.SEOUL -- ROK''s defense ministry said on Wednesday that the Democratic People''s Rep...
微信扫码,在手机上查看选中内容