java.exe" exited with code 1 after updating VS 2019 no code changes

OladotunO 21 Reputation points
2021-04-12T17:47:38.717+00:00

Hi All

I updated VS 2019 to 16.9.3 and then updated an xamarin.android project(already published ), plus its nugets.

I made no changes to the code, cleaned the bins, then build

Now I cannot build . The top of the error stack is

Error "java.exe" exited with code 1. dateandtimetools

Warning ItemGroup XamarinBuildDownloadRestoreAssemblyAar is no longer supported. If your build is failing, revert to an older Xamarin.Build.Download version, or migrate your packages to use the new XamarinBuildDownloadAndroidAarLibrary ItemGroup. If your build is succeeding it is safe to ignore this warning.

Any thoughts

Cheers

Ola

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,971 Reputation points
    2021-04-13T08:08:13.523+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Hi, OladotunO. Do you reference the Xamarin.Build.Download nuget in you project? What the version of package do you install in the project? Someone faced the similar issue and downgrading the version solve the problem. You could the solution in your project.

    Here the case link, you could refer to: https://github.com/xamarin/XamarinComponents/issues/784

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.