Do I need to include <uses-permission android:name="com.android.vending.BILLING" /> in Manifest when I use Google Play Billing Library version 5?

Viewed 39

I was told that I should to include <uses-permission android:name="com.android.vending.BILLING" /> in Manifest File when I use Google Play Billing Library version 5 when I browse the sample project.

But in the official sample project Trivial Drive (Kotlin) which supports Google Play Billing Library version 4, I found <uses-permission android:name="com.android.vending.BILLING" /> isn't inculded in Manifest File.

Do I need to inculdue <uses-permission android:name="com.android.vending.BILLING" /> in Manifest File when I use Google Play Billing Library version 5 ?

1 Answers

Hay, accordind to this thers still an issue with version 5. The pass around it is:

  1. Open your AndroidManifest.xml
  2. Add xmlns:tools="http://schemas.android.com/tools" within <manifest ......>
  3. After the last <uses-permission ... /> add a new line with <uses-permission android:name="com.android.vending.BILLING" tools:node="remove" />
  4. Rebuild and distribute your app

Hope it helps you.

Related