Bug 12258 - In-App Billing IInAppBillingService.aidl generates c# with Compile errors
Summary: In-App Billing IInAppBillingService.aidl generates c# with Compile errors
Status: RESOLVED FEATURE
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.7.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2013-05-15 20:16 UTC by Redth
Modified: 2013-05-16 01:26 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 FEATURE

Description Redth 2013-05-15 20:16:54 UTC
In the Google Android SDK Extras, if you install the In-App Billing, there's an IInAppBillingService.aidl file that gets installed.  I've tried adding this to my project as an AndroidInterfaceDefinition and it does create an IInAppBillingService.cs file, however that file has compile errors.

The compile error (4 of them) is:
/Users/jonathan/Dropbox/Code/AegisShield.Mobile/Shield.MonoDroid/obj/Debug/aidl/IInAppBillingService.cs(31,31): Error CS0234: The type or namespace name `BundleStub' does not exist in the namespace `Android.OS'. Are you missing an assembly reference? (CS0234) (Shield.MonoDroid)


Here's the original .aidl file:
https://gist.github.com/Redth/5585055

Here's the generated C# file (the highlighted line - 75 shows one of the 4 similar compile errors):
https://gist.github.com/Redth/5588469#file-iinappbillingservice-cs-L75

If there's a workaround (maybe a fixed .cs file) that I can use in the meantime, that would be extremely helpful as I'm supposed to have this working by the end of the week. 

Thanks!
Comment 1 Atsushi Eno 2013-05-16 01:26:49 UTC
You need "Bundle.aidl" in your project too (i.e. Bundle in android.jar is not enough), otherwise the expected "stubs" are not generated.

--------
package android.os;

parcelable Bundle;
--------