I use next setting in build.gradle
and it works fine for me:
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
More Related Contents:
- Best way to convert text files between character sets?
- Implementing a Text Editor
- Android Studio gradle takes too long to build
- Still getting warning : Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’
- Gradle does not find tools.jar
- Multi-project test dependencies with gradle
- Ionic build Android error when downloading Gradle
- Error – Android resource linking failed (AAPT2 27.0.3 Daemon #0)
- Error:Execution failed for task ‘:app:compileDebugKotlin’. > Compilation error. See log for more details
- How do I add a new sourceset to Gradle?
- How to autoincrement versionCode in Android Gradle
- rotate x axis text in d3
- jqgrid long text wrapping
- Gradle Test Dependency
- Text comparison algorithm
- Android Studio build fails with “Task ” not found in root project ‘MyProject’.”
- Android gradle build Error:(9, 0) Gradle DSL method not found: ‘compile()’.
- Can someone give an example of cosine similarity, in a very simple, graphical way? [closed]
- How to place and center text in an SVG rectangle
- Underlining text in UIButton
- How to determine encoding table of a text file
- How can the gradle plugin repository be changed?
- Android Studio – Error:Program type already present
- Gradle: How to Build different flavours of different built types?
- Is there a way to split/factor out common parts of Gradle build
- Recommended way to stop a Gradle build
- Using ‘diff’ (or anything else) to get character-level diff between text files
- SwiftUI Text Markdown dynamic string not working
- How to remove/replace text in pygame
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler