Open makeProjectGreatAgain opened 11 months ago
error MSB3073: The command ""/root/android-toolchain/jdk-17/bin/javac" src/test/resources/com/microsoft/android/Outer.java" exited with code 1.
Can you share a .binlog
of the build failure? We need to see the stdout/stderr output of javac
.
You could just try building this one project that failed (add -bl
to get an msbuild.binlog
).
Can you share a
.binlog
of the build failure? We need to see the stdout/stderr output ofjavac
. You could just try building this one project that failed (add-bl
to get anmsbuild.binlog
).
cd /xamarin-android/external/Java.Interop/tools/java-source-utils
dotnet build -bl
Hmm, weird?
src/test/resources/com/microsoft/android/Outer.java:42: error: unmappable character (0xE2) for encoding US-ASCII
* Just an example annotation, for use later???
^
src/test/resources/com/microsoft/android/Outer.java:42: error: unmappable character (0x80) for encoding US-ASCII
* Just an example annotation, for use later???
^
src/test/resources/com/microsoft/android/Outer.java:42: error: unmappable character (0xA6) for encoding US-ASCII
* Just an example annotation, for use later???
^
Maybe @grendello or @jonpryor would know what would cause this on Linux, but I think Java expects these files to be utf8 without a byte-order mark?
Android application type
.NET Android (net7.0-android, net8.0-android, etc.)
Affected platform version
debian:bookworm-slim, NET 8.0
Description
The command
make prepare
works ok.However, when commands
make
ormake jenkins ALL_HOST_ABIS="$(uname)" ALL_AOT_ABIS=""
are executed they display an error: error MSB3073: The command ""/root/android-toolchain/jdk-17/bin/javac" src/test/resources/com/microsoft/android/Outer.java" exited with code 1.
Steps to Reproduce
make prepare
make
ormake jenkins ALL_HOST_ABIS="`uname`" ALL_AOT_ABIS=""
Reproduce via Dockerfile
Another way to reproduce the issue is to use Dockerfile below (it is feasible to attach to a container and debug the build inside the container with Visual Studio Code):
Commands to run inside container:
(
make prepare
already applied)Did you find any workaround?
No
Relevant log output