thudugala / Plugin.LocalNotification

The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
MIT License
403 stars 67 forks source link

Unable to compile after updating to v11.1.4: java.exe error Java0000. #508

Closed Qiulin-Git closed 1 week ago

Qiulin-Git commented 2 weeks ago

Unable to compile after updating to v11.1.4: java.exe error Java0000. 2024-07-09 200803

jerry08 commented 2 weeks ago

I'm getting the same error. The latest commit fixes the problem (https://github.com/thudugala/Plugin.LocalNotification/commit/bacce66e215c44d942c8867a8e77707b55886c8e) but it hasn't been released yet.

Updating the AndroidX NuGet packges to the latest version will fix the current problem which was caused by updating Xamarin.GooglePlayServices.Location to the latest version (#507):

<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
  <PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.8.1" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.Common" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.Process" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime.Ktx" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel.Ktx" Version="2.8.3" />
  <PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModelSavedState" Version="2.8.3" />
</ItemGroup>