<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wake Up Sun &#187; in app billing</title>
	<atom:link href="http://www.wakeupsun.com/tag/in-app-billing/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wakeupsun.com</link>
	<description>Developer - mobile applications and games - Android and iOS</description>
	<lastBuildDate>Fri, 14 Feb 2014 10:14:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solution for the in-app billing tutorial from Google (Android)</title>
		<link>https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/</link>
		<comments>https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 14:14:59 +0000</pubDate>
		<dc:creator>WakeUp Sun</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[IInAppBillingService]]></category>
		<category><![CDATA[in app billing]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wakeupsun.com/?p=157</guid>
		<description><![CDATA[Solution for the IInAppBillingService.aidl error in eclipse. If you try to add the Google library android for the in-app billing, you will have this error: interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl. We will see how to solve &#8230; <a href="https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Solution for the IInAppBillingService.aidl error in eclipse.</h1>
<p>If you try to add the Google library android for the in-app billing, you will have this error: <code>interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl.</code></p>
<p>We will see how to solve this issue.<span id="more-157"></span></p>
<h2>The error</h2>
<p>In its tutorial (<a title="http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample" href="http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample" target="_blank">http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample</a>), Google explains :</p>
<p><em>To add the In-app Billing Version 3 library to your existing In-app Billing project:</em></p>
<p><em>Copy the <code>IInAppBillingService.aidl</code>file to your Android project.</em></p>
<ul>
<li><em>If you are using Eclipse: Import the <code>IInAppBillingService.aidl</code> file into your <code>/src</code> directory.</em></li>
</ul>
<div id="attachment_158" class="wp-caption alignleft" style="width: 445px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_2_inapp_tuto_google_error.png"><img class=" wp-image-158 " title="In app billing library error" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_2_inapp_tuto_google_error-1024x447.png" alt="Error when IInAppBillingService.aidl added" width="435" height="190" /></a><p class="wp-caption-text">Error on IInAppBillingService.aidl</p></div>
<p>That is not exactly true. If you do that, you will have this error: <code>IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl.</code></p>
<h2>The solution</h2>
<ul>
<li>Right click on src and make a new package: com.android.vending.billing.</li>
</ul>
<div id="attachment_159" class="wp-caption alignleft" style="width: 310px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_3_inapp_tuto_google_solution.png"><img class="size-medium wp-image-159" title="Eclipse new package" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_3_inapp_tuto_google_solution-300x122.png" alt="Eclipse new package" width="300" height="122" /></a><p class="wp-caption-text">Eclipse new package</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_160" class="wp-caption alignleft" style="width: 310px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_4_inapp_tuto_google_solution.png"><img class="size-medium wp-image-160" title="New package com.android.vending.billing" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_4_inapp_tuto_google_solution-300x300.png" alt="New package com.android.vending.billing" width="300" height="300" /></a><p class="wp-caption-text">New package com.android.vending.billing</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li>Move the class IInAppBillingService.aidl in this new package (you can do that with the mouse).</li>
</ul>
<div id="attachment_161" class="wp-caption alignleft" style="width: 278px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_5_inapp_tuto_google_solution.png"><img class="size-full wp-image-161" title="Move InAppBillingService.aidl" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_5_inapp_tuto_google_solution.png" alt="Move InAppBillingService.aidl" width="268" height="202" /></a><p class="wp-caption-text">Move InAppBillingService.aidl in the new package</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li>Result: you can build your project (if you are not on built automatically). You should see:</li>
</ul>
<div id="attachment_162" class="wp-caption alignleft" style="width: 274px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_6_inapp_tuto_google_solution.png"><img class="size-full wp-image-162" title="In app billing solution" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_6_inapp_tuto_google_solution.png" alt="In app billing solution" width="264" height="292" /></a><p class="wp-caption-text">In app billing solution</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>You can discover my android applications on my apps page: <a title="Applications" href="http://www.wakeupsun.com/applications/">http://www.wakeupsun.com/applications/</a></p>
<p>Wakeupsun</p>
]]></content:encoded>
			<wfw:commentRss>https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
