jamesmontemagno / GeolocatorPlugin

Geolocation plugin for Xamarin and Windows
MIT License
293 stars 158 forks source link

MAUI app and Error java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: #351

Open LukasKuchta opened 2 years ago

LukasKuchta commented 2 years ago

Bug Information

Version Number of Plugin: 4.5.0.6 Device Tested On: Android Simulator Tested On: Version of VS: Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.2.0 Preview 6.0

Version of Xamarin: Xamarin 17.2.0.171 (d17-2@7554231) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.2.0.244 (remotes/origin/d17-2@197e1a0b7) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 17.2.15 (2e3b60e) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 12.3.0.3 (d17-2/bbba5a2) Xamarin.Android Reference Assemblies and MSBuild support. Mono: adf1bc4 Java.Interop: xamarin/java.interop/d17-2@9760f0a9 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.38.2@7b1e016 Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-2@fc3c2ac Versions of other things you are using:

Steps to reproduce the Behavior

Add plugin into MAUI app and try to complile procject

Expected Behavior

Project is sucessfuly compiled and running fine.

Actual Behavior

Compilation error

Code snippet

Severity Code Description Project File Line Suppression State Error java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj\Debug\net6.0-android\lp\15\jl\bin\classes.jar : android/support/v4/app/INotificationSideChannel$Stub$Proxy.class MobileUi C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.300-rc.2.27\tools\Xamarin.Android.D8.targets 79

Screenshotst

jamesmontemagno commented 2 years ago

I have not re-compiled for .NET MAUI.

Standard geolocation is supported in .NET MAUI already.... I don't really want to bring this over as it is really out of date, i would rather people put their code into the project or contribute to APIs in .NET MAUI.

LukasKuchta commented 2 years ago

Ok. Thnaks. Where is the right place to give the help for MAUI project ? Can i create pull request into maui on git hub ?

inforithmics commented 2 years ago

Someone is adding the missing functionality here.

https://github.com/dotnet/maui/pull/9572

orwo1 commented 1 year ago

MAUI Essentials is missing some features this package provides, that even Xamarin.Forms never provided support for. Location changed/error events, start/stop listening, for example. Is it possible to port this package to support MAUI so we won't lose functionality when porting our app to MAUI?

ndegheselle commented 1 year ago

MAUI essentials will have the listening feature soon (version 8.0.0 in preview) : https://github.com/dotnet/maui/pull/9572