If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin: 6.0.1
Device Tested On:
Simulator Tested On:
Version of VS: 16.7.5
Version of Xamarin: 4.7.0.1142
Versions of other things you are using:
xamarin.essentials: 1.5.3.2
This is On Release Mode
Using plugin version 6.0.1 throws error
error XALNK7000: Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: No se pudo resolver la referencia a "Plugin.Permissions.BasePermission" (definida en el ensamblado "ProjectMovil", Version=1.0.0.0, Culture=neutral, PublicKeyToken=null") con el ámbito "Plugin.Permissions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"'. Cuando el ámbito es diferente del ensamblado de definición, normalmente significa que el tipo se reenvía. ---> Mono.Cecil.ResolutionException: Failed to resolve Plugin.Permissions.BasePermission
When using Old version plugin 3.0.0.12 works!
Code snippet
using Plugin.Permissions;
using Plugin.Permissions.Abstractions;
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace ProjectMovil.Util
{
public class Permisos
{
public static async Task TienePermisoAlmacenamiento()
{
return await TienePermiso(new StoragePermission(), Permission.Storage);
}
If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin: 6.0.1 Device Tested On: Simulator Tested On: Version of VS: 16.7.5 Version of Xamarin: 4.7.0.1142 Versions of other things you are using: xamarin.essentials: 1.5.3.2
Steps to reproduce the Behavior
android:minSdkVersion="16" android:targetSdkVersion="29" TargetFrameworkVersion: android 10
Expected Behavior
Actual Behavior
This is On Release Mode Using plugin version 6.0.1 throws error error XALNK7000: Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: No se pudo resolver la referencia a "Plugin.Permissions.BasePermission" (definida en el ensamblado "ProjectMovil", Version=1.0.0.0, Culture=neutral, PublicKeyToken=null") con el ámbito "Plugin.Permissions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"'. Cuando el ámbito es diferente del ensamblado de definición, normalmente significa que el tipo se reenvía. ---> Mono.Cecil.ResolutionException: Failed to resolve Plugin.Permissions.BasePermission
When using Old version plugin 3.0.0.12 works!
Code snippet
using Plugin.Permissions; using Plugin.Permissions.Abstractions; using System; using System.Threading.Tasks; using Xamarin.Forms;
namespace ProjectMovil.Util { public class Permisos { public static async Task TienePermisoAlmacenamiento()
{
return await TienePermiso(new StoragePermission(), Permission.Storage);
}
}
Screenshots