赞
踩
错误信息:<ij_msg_gr>Project resolve errors<ij_msg_gr><ij_nav>/Users/mac/Desktop/hmsspace/MyApplication2/build.gradle<ij_nav><i><b>root project 'MyApplication2': Unable to resolve additional project configuration.</b><eol>Details: java.lang.IllegalStateException: Resolving dependency configuration 'compileOnly' is not allowed as it is defined as 'canBeResolved=false'.<eol>Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'compileOnly' should be resolved.</i>
修改配置文件,重新同步都无法解决。
先看配置:
这些都是正常的,但是依然报错:
修改方案:
你看下这个/Users/username/Library/Preferences/DevEcoStudio2.0/options目录里面有没有gradle.experimental.xml这个文件,打开发现:
改为true后继续重新构建即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。