编译报错:
Error:Unable to load class 'org.gradle.logging.StyledTextOutput$Style'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
**我使用的环境:
**
Android Studio版本:2.3.1
gradle-wrapper.properties:distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
build.gradle: classpath 'com.android.tools.build:gradle:2.3.1'
根据网上查到的资料:
我感觉是gradle版本配置的问题,我尝试着进行如下修改:
gradle-wrapper.properties:distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip
build.gradle: classpath 'com.android.tools.build:gradle:2.2.3'
但是还一直是报这个错误!
请问:
看一看版本发布的新闻,再看一看其他的issue就知道了。
https://www.oschina.net/news/83347/oschina-android-app-v283-open-source
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
可以跑起来了!
gradle怎么不换成较新的版本呢?
升级到 classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4',Gradle用3.3的就能解决这个问题
老哥,你换到grale。2.14.1就ok了,不用谢。。。。
升级classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
就可以了
楼上正解
楼上正解
楼上正解
楼上正解!
Error:A problem occurred configuring project ':app'.
Could not generate a proxy class for class com.getkeepsafe.dexcount.DexMethodCountTask. 这是什么问题了
登录 后才可以发表评论