Open Jambo-Git opened 3 years ago
i change: golang.org\x\mobile\cmd\gomobile\bind_androidapp.go; line 308 add "-encoding","utf-8" args := []string{ "-d", dst, "-source", javacTargetVer, "-target", javacTargetVer, "-encoding","utf-8", "-bootclasspath", bClspath, }
I see, it looks like javac
doesn't like the encoding of the files gomobile generates. Looks like we just put in UTF-8 strings wholesale, but Java strings aren't UTF-8. And it appears OP fixed it by adding -encoding utf-8
to the list of arguments passed to javac
.
CC @hyangah via https://dev.golang.org/owners
@Jambo-Git would you be willing to send a PR to https://github.com/golang/mobile, since you already figured it out? (See https://golang.org/doc/contribute for how to contribute.)
If you're not interested in sending a patch, I can send a patch for this later this week.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?