Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy Can't Google's Market Billing Sample Build in a Signed Release Version?
    primarykey
    data
    text
    <p>I tried looking into <a href="https://stackoverflow.com/questions/8059719/unable-to-execute-dex-multiple-dex-files-define">similar</a> problems, but the solutions offered there do not seem to fit my particular situation:</p> <p>I initially followed the instructions for <a href="http://developer.android.com/guide/market/billing/billing_integrate.html#billing-download" rel="nofollow noreferrer">Configuring and building the sample application</a> for In-app Billing, replacing the security key with the public key from Google's Developer account and changing the package name from <code>com.example</code> to <code>com.billtheape</code>. </p> <p>I then built a non-release version and ran a "sanity check" on my Android phone. Everything went OK (except for accessing the Android Market server, of course, since by design it only works with a signed release version).</p> <p>Then I tried to build a signed release version, but received the error:</p> <pre><code>[2012-01-03 20:52:45 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/android/vending/billing/IMarketBillingService; [2012-01-03 20:52:45 - Dungeons] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/android/vending/billing/IMarketBillingService; </code></pre> <p>The problem now is that even the "debug version" building generated the same error, regardless of how many times I tried to clean the project.</p> <p>This didn't look to me like a Build Path issue in the sense that the accepted answer described (I checked that, too, but couldn't find anything suspicious). So I tried something else:</p> <ol> <li>Exited Eclipse</li> <li>Spotted <strong>three</strong> subdirectories under <code>%ANDROID_HOME%\extras\google\market_billing\gen\com</code>: (1) android (2) example (3) billtheape</li> <li>Deleted the subdirectory <code>example</code>.</li> <li>Started Eclipse and cleaned the project.</li> </ol> <p>Debug version builds now properly, but signed release still generates the same error. It turns out that deleting that extraneous subdirectory wasn't what did the magic, but rather restarting Eclipse and then cleaning the project.</p> <p>OK, so at least I got the "debug version" working back, but the signed release Export keeps failing with the same error.</p> <p>Any idea what this error means, why it happens and how to fix it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload