Open MarcK95 opened 4 years ago
Could you run C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\GenerateJavaStubs.proj
Remove the /verbosity:minimal
code from msbuild
command.
I ran the command you mentioned with the following result:
Build` started 09.04.2020 09:02:40.
Project "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\GenerateJavaStubs.proj" on node 1 (default targets).
Build:
Copying file from "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\obj\lp\hello-from-csharp\jl\res\layout\hello.xml" to "C:\Users\UserName\Documents\projec
ts\hello\hello-from-csharp\hello-from-csharp\Foo\android\res\layout\hello.xml".
Copying file from "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\obj\lp\hello-from-csharp\jl\res\values\strings.xml" to "C:\Users\UserName\Documents\proj
ects\hello\hello-from-csharp\hello-from-csharp\Foo\android\res\values\strings.xml".
Made 1 replacement(s).
Made 2 replacement(s).
Made 2 replacement(s).
Done Building Project "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\GenerateJavaStubs.proj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
I didn't get what you mean with this:
yes, remove the /verbosity:minimal code
@MarcKammermann I find the old issus : https://github.com/jamesmontemagno/embeddinator-hellosharedui/issues/3
And the msbuild output is without any error but still no arr file. This is a confusing question
I ran the command you mentioned with the following result:
Build` started 09.04.2020 09:02:40. Project "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\GenerateJavaStubs.proj" on node 1 (default targets). Build: Copying file from "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\obj\lp\hello-from-csharp\jl\res\layout\hello.xml" to "C:\Users\UserName\Documents\projec ts\hello\hello-from-csharp\hello-from-csharp\Foo\android\res\layout\hello.xml". Copying file from "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\obj\lp\hello-from-csharp\jl\res\values\strings.xml" to "C:\Users\UserName\Documents\proj ects\hello\hello-from-csharp\hello-from-csharp\Foo\android\res\values\strings.xml". Made 1 replacement(s). Made 2 replacement(s). Made 2 replacement(s). Done Building Project "C:\Users\UserName\Documents\projects\hello\hello-from-csharp\hello-from-csharp\Foo\GenerateJavaStubs.proj" (default targets). Build succeeded. 0 Warning(s) 0 Error(s)
I didn't get what you mean with this:
yes, remove the /verbosity:minimal code
Same problem
Same here… Is this project still actively being maintainted? 👀
Same here… Is this project still actively being maintainted? 👀
I doubt it. You just have to check the commits and see that its so long since they made a fix and not to count the documentation is as old as 3 years at least (referencing VS2017) not to count the 100+ issues without resolving.
Downgrading NDK to v14 helped in overcoming this. The project isn't updated for the latest NDKs
@lindexi Faced this error? Any help appreciated!
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot fin d the file specified at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startIn fo) at System.Diagnostics.Process.Start() at Embeddinator.Helpers.Invoke(String program, String arguments, Dictionary2 envVars) at Embeddinator.Driver.CompileJava(IEnumerable
1 files) at Embeddinator.Driver.CompileCode() at Embeddinator.Driver.Run() at Embeddinator.CLI.Main(String[] args)
@Harishez I do not know which file not found.
@lindexi It doesn't point to any file. I get this after the following in log
Full Log:
2 envVars) at Embeddinator.Driver.CompileJava(IEnumerable
1 files)And then the exception I had shared being thrown
Downgrading NDK to v14 helped in overcoming this. The project isn't updated for the latest NDKs
did you change anything else? I am facing the same issue and downgrading to NDK v14 alone does not resolve it.
Steps to Reproduce
I created a test project like its described here https://docs.microsoft.com/en-us/xamarin/tools/dotnet-embedding/get-started/java/android
I installed Embeddinator as nuget
I tried all methods of building an aar file like its described here https://docs.microsoft.com/en-us/xamarin/tools/dotnet-embedding/get-started/install/install
I get no positive result in any of these possibilities
Expected Behavior
Should generate aar file inside output folder
Actual Behavior
generates a bunch of files but no aar
Environment
Win10 64bit, VS19 (16.4.6)
Logs
WHEN USING COMMAND LINE WITHOUT -c Embeddinator-4000.exe -gen=Java --platform=Android -out=Foo bin\Debug\hello-from-csharp.dll -v
This runs without errors, but there is still no aar file generated in the output folder
WHEN USING COMMAND LINE WITH -c Embeddinator-4000.exe -gen=Java --platform=Android -out=Foo bin\Debug\hello-from-csharp.dll -v -c
WHEN USING MSBUILD TARGETS
WHEN USING POST-BUILD STEPS