Skip to content

Commit

Permalink
解决java8生成失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qq549631030 committed Jun 9, 2023
1 parent d8d07b6 commit 767b243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:3.0.1"
if (PLUGIN_ENABLE.toBoolean()) {
classpath "com.github.qq549631030:android-junk-code:1.2.3"
classpath "com.github.qq549631030:android-junk-code:1.2.4"
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#project
GROUP=com.github.qq549631030
VERSION_NAME=1.2.3
VERSION_NAME=1.2.4

POM_ARTIFACT_ID=android-junk-code
POM_NAME=AndroidJunkCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import org.gradle.api.tasks.OutputDirectory
import org.gradle.api.tasks.TaskAction

import javax.lang.model.element.Modifier
import java.nio.charset.Charset
import java.nio.file.Files
import java.nio.file.Path

Expand Down Expand Up @@ -262,7 +261,7 @@ class AndroidJunkCodeTask extends DefaultTask {
}
FileWriter writer
try {
writer = new FileWriter(file, Charset.forName("UTF-8"))
writer = new FileWriter(file)
writer.write(data)
} catch (Exception e) {
e.printStackTrace()
Expand Down

0 comments on commit 767b243

Please sign in to comment.