Unknown permission com.android.vending.BILLING

試著忘記壹切 提交于 2019-12-10 18:33:58

问题


I'm trying to set-up the In-App billing feature in my application. So far I followed this guide:

http://developer.android.com/training/in-app-billing/preparing-iab-app.html

However when I'm specifying the Billing permission

<uses-permission android:name="com.android.vending.BILLING" />

the following message is appearing in LogCat:

Unknown permission com.android.vending.BILLING in package org.noi.activity

every time I start my application.

As I mentioned above I registered the Billing permission in my AndroidManifest.xml just as like in the tutorial:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="org.noivr.activity"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:targetSdkVersion="17" android:minSdkVersion="9"/>
    <uses-permission android:name="com.android.vending.BILLING" />
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
...
</manifest>

I also copied the In-app billing libraries into my project which now has the following structure:

  • com.android.vending.billing
  • com.android.vending.billing.util
  • org.noi.activity
  • org.noi.impl
  • org.noi.const

回答1:


Are you testing on emulator?

A recent version of Google Play must be installed.

Edit:

No, it's not possible.

You cannot use the Android emulator to test In-app Billing. The device you use for testing must run a standard version of the Android 1.6 or later platform (API level 4 or higher), and have the most current version of the Google Play application installed.

Source

Google Play app is only licensed to device manufacturers. In fact, you could find pirated version of Google Play app on the Internet, but it's not really recommended.



来源:https://stackoverflow.com/questions/15053868/unknown-permission-com-android-vending-billing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!