Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.
Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.
Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.
Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.
Created attachment 1077 [details] Sample project reproducing the problem When I try to deploy attached project to device, packaging fails with error: "D:\misc\M4ABugRepro\M4ABugRepro\M4ABugRepro.csproj" (SignAndroidPackage target) (1) -> (_CompileJava target) -> obj\Release\android\src\m4abugrepro\TestFilter.java(28,9): error : TestFilter(m4abugrepro.AbstractAdapter_1) is already defined in m4abugrepro.TestFilter [D:\misc\M4ABugRepro\M4ABugRepro\M4ABugRepro.csproj] obj\Release\android\src\m4abugrepro\TestFilter.java(28,9): error : public TestFilter (m4abugrepro.AbstractAdapter_1 p0) [D:\misc\M4ABugRepro\M4ABugRepro\M4ABugRepro.csproj] obj\Release\android\src\m4abugrepro\TestFilter.java(28,9): error : [D:\misc\M4ABugRepro\M4ABugRepro\M4ABugRepro.csproj] Bug is reproducable always on Mono for Android 4.0.1 running on Windows and Visual Studio 2010. It works with m4A 4.0. Steps to reproduce: 1. Open attached project. 2. Try to deploy to the device.
The problem is M4ABugRepro.TestFIlter. The ACW contains: public TestFilter (m4abugrepro.AbstractAdapter_1 p0) {...} public TestFilter (m4abugrepro.AbstractAdapter_1 p0) {...} Oops. It looks like the logic of "generate all base constructors, then generate current constructors" doesn't check to see if the current ctor was already generated in the base case.
Fixed in commit a3d0015f.