Edit

.NET for Android warning XA4250

Example message

Manifest-referenced type '{0}' was not found in any scanned assembly. It may be a framework type.

warning XA4250: Manifest-referenced type 'com.example.MainActivity' was not found in any scanned assembly. It may be a framework type.

Issue

The build found a type name in AndroidManifest.xml, but it could not match that name to any Java peer discovered in the app's managed assemblies.

This can be expected for framework-provided types, but it can also indicate that the manifest entry does not match the name generated for a managed Android component.

Solution

If the manifest entry refers to an Android framework type, this warning can usually be ignored.

Otherwise:

  1. Verify the android:name value in the manifest.
  2. Ensure the managed type is included in the app build.
  3. Check for namespace, [Register], or nested-type naming mismatches between the manifest and the managed type.