Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 1705 [details]
The problem is that when you attempt to install the attached project, it fails with:
Looking at logcat, you'll find:
> W/PackageParser(24096): /data/app/vmdl-1541342243.tmp (at Binary XML file line #10): <provider> does not have valid android:name
The reason for this is that Android hates PascalCase type names, which you include in Properties\AndroidManifest.xml:
Seriously: they validate that if android:name contains a '.', the '.' is either the first character OR that the first character is a lowercase letter:
This is why Mono for Android lowercases namespace names.
The fix is twofold:
1. Edit DiaPadContentProvider.cs, and add a [ContentProvider] custom attribute:
class DiaPadContentProvider : ContentProvider
2. REMOVE the <activity/> and <provider/> elements from AndroidManifest.xml; they're not needed and harmful.
The <activity/> element won't cause any compilation errors, but it will cause a second Launcher icon to be displayed, and if you tap on the "wrong" icon it'll crash during app startup (as the type Dia.Face.eventactivity won't exist).
The <provider/> element is preventing installation of your app.