Bug 18893 - Android sample 'AdMob' giving build error
Summary: Android sample 'AdMob' giving build error
Status: RESOLVED ANSWERED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.12.0
Hardware: PC All
: Normal normal
Target Milestone: ---
Assignee: Oleg Demchenko
URL:
: 9445 16939 ()
Depends on:
Blocks:
 
Reported: 2014-04-09 09:29 UTC by narayanp
Modified: 2015-05-25 22:07 UTC (History)
6 users (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 ANSWERED

Description narayanp 2014-04-09 09:29:37 UTC
Steps to reproduce:
1. Open Android sample 'AdMob'
2. Add GoogleAdMobAdsSdk.jar as a link.
3. Build the sample.

Actual Result: It is giving build error "Error 29 The item "obj\Debug\__AndroidLibraryProjects__.zip" was specified more than once in the "Resources" parameter and both items had the same value "__AndroidLibraryProjects__.zip" for the "LogicalName" metadata.  Duplicate items are not supported by the "Resources" parameter unless they have different values for the "LogicalName" metadata. C:\Program Files\MSBuild\12.0\bin\Microsoft.CSharp.CurrentVersion.targets 325 9 AdMobTest"


Expected Result: Application should build successfully.

Supplement info:
Build Output: https://gist.github.com/saurabh360/3b7fbed3f5e7d66492d4

Environment details:
All Mac and Windows
VS 2013/2012/2010
X.S 4.2.4(build 33)
Xamarin for VS 1.12.260(X.Android 4.12.2.7)
X.Android on Mac 4.12.3-3

Regression Status: NOT A REGRESSION: Getting same behavior with stable X.Android 4.12.1
Comment 1 Ovidiu Tudorache 2014-05-07 03:31:47 UTC
Did you solve this?
Comment 2 Peter Collins 2014-05-08 14:23:34 UTC
I was unable to reproduce this build error on XA 4.12.4. 

However, this sample will be deprecated / obsolete within a few months. The Google AdMob Ads standalone SDK is now flagged as obsolete in the Android SDK manager. Google will no longer provide support for, and the Play Store will no longer accept any application updates or new applications that use this SDK after August 1st, 2014. We will want to create a new sample demonstrating the new Google Mobile Ads API for AdMob, which is found within Google Play Services.
Comment 3 Prashant manu 2014-05-20 07:03:51 UTC
I have checked this issue with following builds:

X.S 5.0(Build 874)
Mono 3.4.0
X.Android 4.12.4-15

I am also getting build error for AdMob android sample. This is the build output: https://gist.github.com/saurabh360/8d97005a28ae3e382bb3
Comment 4 Atsushi Eno 2014-07-30 14:43:32 UTC
There is something Android team should fix.
Comment 5 Peter Collins 2015-03-09 15:51:09 UTC
*** Bug 16939 has been marked as a duplicate of this bug. ***
Comment 6 Peter Collins 2015-03-09 15:51:17 UTC
*** Bug 9445 has been marked as a duplicate of this bug. ***
Comment 7 Peter Collins 2015-03-09 15:52:55 UTC
I think we can task our Mobile Dev guys in QA with updating and or creating a new sample for the Admob in Google Play Services.
Comment 8 Ben Beckley 2015-03-09 16:07:57 UTC
Deleted AdMob sample from the monodroid-5.0-series branch because the sdk is no longer supported by Google. It is still in the history if anyone desires to use it as a reference.

commit: bc7bd0fe4db8b3c564722779eed5d42f4fa63ae8