Bug 2528 - Packaging fails with "is not abstract and does not override abstract method onLayout"
Summary: Packaging fails with "is not abstract and does not override abstract method o...
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-12-15 09:31 UTC by Michal
Modified: 2012-03-23 16:39 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Samples demonstrating the problem. (17.33 KB, application/zip)
2011-12-15 09:31 UTC, Michal

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.

Related Links:

Description Michal 2011-12-15 09:31:21 UTC
Created attachment 1049 [details]
Samples demonstrating the problem.

Packaging (in VS menu Build->Package) fails when building Release configuration with Linker set to SDK and User Assemblies.

Produced error is: System.Exception: library.MyViewGroup is not abstract and does not override abstract method onLayout(boolean, int, int, int, int) in android.view.ViewGroup

How to reproduce:
1. Open attached sample in VS (open MissingOnLayout solution).
2. Set configuration to Release (if not set)
3. Choose menu Build->Package MissingOnLayout for Android (.apk)
4. Observer fail.
Comment 1 Jonathan Pryor 2011-12-16 16:26:19 UTC
Which mono for Android version is this? I'm unable to reproduce a build error with 4.0 or 4.0.1.
Comment 2 Michal 2011-12-18 05:38:14 UTC
Tested with 4.0.1, Windows version.

I'm getting this error when I set Linking to Sdk and User Assemblies. Other options works.
Comment 3 Jonathan Pryor 2012-01-30 16:10:41 UTC
(Aside: It helps when I try to do a Release build, as the Debug build doesn't do any linking...)

I'm able to reproduce on 4.0.3.
Comment 4 Jonathan Pryor 2012-01-30 16:14:07 UTC
As a workaround, linking with SdkOnly allows the project to generate a package.
Comment 5 Jonathan Pobst 2012-03-23 16:39:53 UTC
This seems to be fixed for 4.2, likely due to the other linking fixes I did.