为了避免在构建Java源代码时出现有关特殊字符的警告,我在Gradle.build
中添加了这一行,在升级到Gradle2.0之前,这一行工作良好:
tasks.withType(Compile) { options.encoding = "UTF-8" }
Could not find property 'Compile' on root project
我该怎么解决呢?
将行更改为
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }
修正了这个问题。
问题内容: 为了避免在构建Java源代码时出现有关特殊字符的警告,我将这一行放在我的行中,在升级到Gradle 2.0之前,该行运行良好: 升级后,失败并显示以下错误: 我该如何解决? 问题答案: 将行更改为 解决了这个问题。
我尝试用构建我的Java项目,得到了以下内容: 的第25行:
我用Play2.0创建了一个应用程序。我实现了scribe-java库来使用一些OAuth服务。直到今天,一切都很好,但当我升级jdk并重新启动服务器时,我不能使用scribe-java库。它似乎在sun.security包中使用了和类,但找不到。 “java-version”返回: 播放2.0 StackTrace:
我目前正在使用Android Studio,我正在尝试进行重建,但我得到以下错误。 我会尝试“try:run with--stacktrace”,但是,我不确定如何做到这一点。有人能帮我排除这个问题吗?谢谢!
从 v4 升级项目后,找不到类“android.support.v7.app.通知Compat$Builder”。 我正在尝试使用通知来管理我的媒体播放器控件。 根据这个问题,我需要在我的项目中使用< code > Android . support . V7 . app . notification compat 来进一步研究锁屏控件。 https://stackoverflow.com/a/3
导入某些项目后,我遇到以下错误。该项目最初来自GitHub。 升级到gradle 2.10后发生 这就是我得到的错误。 这是我的身材。梯度锉