Sri*_*ini 5 android in-app-billing google-play
当我尝试进行应用内购买时,我不断收到此错误消息.我已经上传了此应用的先前版本,我可以成功进行应用内购买!我看过清单文件,它是相同的(除了版本代码) - 但我不能摆脱这个错误:(
是否有描述如何处理此问题的文档?我试图在这个论坛上提出的所有补救措施,其中包括: - 确保我建立一个无符号的APK,并明确与我释放钥匙签署它(是的 - 我已经检查,以确保该密钥/密码是正确的) - 确保正确的权限已启用(自上次成功构建以来尚未更改此权限)
我错过了一些微不足道的东西 - 但对于我的生活,我无法想象什么!
请帮忙!
这是我的清单文件如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.foo.bar"
android:versionName="1.4" android:versionCode="18">
<uses-sdk android:minSdkVersion="9"
android:targetSdkVersion="9" />
<uses-permission android:name="android.permission.WAKE_LOCK" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
</uses-permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" >
</uses-permission>
<uses-permission android:name="com.android.vending.BILLING" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:debuggable="false"
android:icon="@drawable/video"
android:label="@string/app_name" >
<activity android:name="com.inappbilling.InappActivity" />
<activity
android:configChanges="orientation"
android:label="@string/app_name"
android:name=".SplashActivity"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Favorites"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<activity
android:name=".PlayVideo"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<activity
android:name=".Featured"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<activity
android:name=".FacebookLike"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<service android:name="com.inappbilling.BillingService" />
<receiver android:name="com.inappbilling.BillingReceiver" >
<intent-filter >
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
</intent-filter>
</receiver>
</application>
</manifest>
Run Code Online (Sandbox Code Playgroud)
小智 8
我有这个错误,并尝试了其他帖子关于这个主题的各种建议,但都没有奏效.
最后我发现它是由我的调试器使用与我上传到Google Play的APK不同的密钥引起的.
我使用的默认debug.keystore在一年内到期.
我不得不创建一个新的debug.keystore,它将在五十多年后到期(当我尝试上传时,这个限制来自Google Play中的错误消息).
然后我构建了应用程序并从我的应用程序的bin文件夹(使用我的新debug.keystore构建)上传了APK.
在Windows 7上,您可以使用此命令生成新的debug.keystore(首先删除现有的debug.keystore):
C:\Users\MyUserName\.android>"C:\Program Files\Java\jdk1.6.0\bin"\keytool.exe -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 21900
您的keytool.exe路径可能与我的不同,具体取决于安装的内容.
请将该应用程序导出为签名应用程序,然后将其安装在手机上,您将永远不会再看到此错误。
您也可以参考链接:
| 归档时间: |
|
| 查看次数: |
10051 次 |
| 最近记录: |