Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

[All resolved]Prompt System.ArgumentNullException: The parameter "unevaluatedValue" cannot be null. #783

Open
2505817596 opened this issue Oct 31, 2020 · 7 comments

Comments

@2505817596
Copy link

未经处理的异常: System.ArgumentNullException: 参数“unevaluatedValue”不能为 null。
在 Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgumentNull(Object parameter, String parameterName, String resourceName)
在 Microsoft.Build.Construction.ProjectTaskElement.SetParameter(String name, String unevaluatedValue)
在 Embeddinator.XamarinAndroidBuild.GenerateJavaStubsProject(List`1 assemblies, String outputDirectory)
在 Embeddinator.Driver.WriteFiles()
在 Embeddinator.Driver.Run()
在 Embeddinator.CLI.Main(String[] args)

@chamons
Copy link
Contributor

chamons commented Nov 2, 2020

Thanks for the feedback.

It looks like you hit an exception while compiling an android project.

Could you please attach the project in question and build logs so we can look into th

@chamons chamons added android need-info Waiting for more information before the bug can be investigated labels Nov 2, 2020
@chamons chamons added this to the Future milestone Nov 2, 2020
@2505817596
Copy link
Author

Thanks for the feedback.

It looks like you hit an exception while compiling an android project.

Could you please attach the project in question and build logs so we can look into th
ClassLibrary1.zip

This is actually an Android class library project created, nothing changed

@chamons
Copy link
Contributor

chamons commented Nov 3, 2020

Can you please also post the tool invocation you used to try to bind that library?

@2505817596
Copy link
Author

Can you please also post the tool invocation you used to try to bind that library?

Are you uploading my local Embeddinator-4000 tool?

@chamons
Copy link
Contributor

chamons commented Nov 3, 2020

No, what command did you use to build it from the command line?

@2505817596
Copy link
Author

No, what command did you use to build it from the command line?

Embeddinator-4000.exe -gen=Java --platform=Android -out=foo ClassLibrary1.dll

@chamons chamons added help wanted and removed need-info Waiting for more information before the bug can be investigated labels Nov 3, 2020
@2505817596 2505817596 changed the title Prompt System.ArgumentNullException: The parameter "unevaluatedValue" cannot be null. [All resolved]Prompt System.ArgumentNullException: The parameter "unevaluatedValue" cannot be null. Nov 4, 2020
@datoml
Copy link

datoml commented Nov 18, 2020

I had the same problem.
Try to run the command again with the -v option.
Embeddinator-4000.exe -gen=Java --platform=Android -out=foo ClassLibrary1.dll -v

The output should show that the Android Ndk registry key is missing.
What if have done was to add the missing key and pointed it to the android ndk.

Update:
Make sure that you are downloading the android ndk version 15. All above are not able to compile the code. At least for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants