Closed rsevil-origin closed 6 years ago
@rsevil-origin try the solutions posted in this SO thread.
Closing the issue as it is not related to NativeScript.
@NickIliev I know that this is not a NativeScript bug, I already tried setting in my app.gradle file, under android, compileOptions.encoding "UTF-8" or other values but I keep getting the same errors, because the java source is mixed, all sources are UTF-8 encoded but there is one that is being ANSI encoded.
I'm looking for help because I don't know what can I do to fix this issue.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I’m facing an issue while trying to build a project with a thirdparty private plugin.
When I run the command “tns run android” the build starts, it prepares all plugins, then builds the needed aar packages, executes after-prepare hooks, and then starts the gradle process, ir goes througth 50% and then throws many error complaining about illegal characters on generated java sources pointing to the lines and the file that’s causing the problem. It’s an encoding problem because with notepad++ I viewed that the file that is causing problems is being ANSI encoded and the rest of java source files are being encoded in UTF-8.
How can I change the encoding of that java source before it’s sent to the java compiler?
This is the output tns run android: