Compilation errror when using with Plugin.CurrentActivity in .Droid project

Hello,

The new version of SfPdfViewer (16.1.0.24)  for Xamarin.Forms cause compilation error in .Droid project if you already have this Xamarin.Forms plugin : http://www.nuget.org/packages/Plugin.CurrentActivity.

The error is :
The "GenerateJavaStubs" task failed unexpectedly.
System.InvalidOperationException: Application cannot have both a type with an [Application] attribute and an [assembly:Application] attribute.

The Plugin.CurrentActivity create an Application class with the attribute [Application] that allow you to access the current Activity in an Android App.

Does SfPdfViewer create a custom Application class with the [Application] or [assembly:Application] attribute too ?

Note : This bug not appears in SfPdfViewer v15.4.0.20.

4 Replies

LN Lakshmi Narayanan Asokan Syncfusion Team February 26, 2018 11:17 AM UTC

Hi Fabien, 
 
Sorry for the inconvenience caused.  
 
We could reproduce the reported issue in the version 136081 and a support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates 
 
Best, 
Lakshmi Narayanan Asokan 



CS Christopher Schulze March 21, 2018 02:09 PM UTC

Hi,

I have exactly the same problem. Has this been fixed in v16.1.0.26? I'm using the CurrentActivity Plugin too, because of the PermissionsPlugin (this is very essential for my application).
I'm also using the following Syncfusion packages in v16.1.0.24:
- Syncfusion.Xamarin.SfBusyIndicator
- Syncfusion.Xamarin.SfDataGrid
- Syncfusion.Xamarin.SfListView
- Syncfusion.Xamarin.SfMaskedEdit (this is not available in v15.x)
- Syncfusion.Xamarin.SfPdfViewer

Thanks,

Christopher


CS Christopher Schulze March 22, 2018 07:25 AM UTC

Hi,

I can confirm this has been fixed in v16.1.0.26.

Thanks


NK Navaneetha Kannan Sudalai Muthu Syncfusion Team March 22, 2018 08:53 AM UTC

Hi Christopher,  

We are glad that the issue has been resolved. Please let us know if you need any further assistance.  


Best, 
Navaneetha Kannan 


Loader.
Up arrow icon