Bug 8862 - MetaDataAttribute needs to be supported for <application> element
Summary: MetaDataAttribute needs to be supported for <application> element
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.3.x
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-12-10 02:28 UTC by Atsushi Eno
Modified: 2012-12-10 23:10 UTC (History)
1 user (show)

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

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:
Status:
RESOLVED FIXED

Description Atsushi Eno 2012-12-10 02:28:59 UTC
When we bind Google Maps V2 API, it will raise an error, saying that the app needs <meta-data> element in <application> element:

Caused by: java.lang.RuntimeException: API key not found.  Check that <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml

However, <meta-data> element from MetaDataAttribute is not supported for <application>. It is generated on e.g. <activity> (when we put the attribute on Activity class).

So far we can manually edit AndroidManifest.xml to specify it.
Comment 1 Atsushi Eno 2012-12-10 23:10:04 UTC
done.