我目前正在我的应用程序中购买应用程序,当它启动时我总是在我到达IabHelper.QueryInventoryFinishedListener方法时查询错误代码-1003查询所拥有的项目响应签名验证失败.
我目前使用谷歌"Trivial Drive"的示例版本,我想我的签名是正确的,因为当我使用android.app.purchassed时我会买很多...
关键似乎对我来说是正确的,因为当我点击喜欢购买一个产品,告诉我出版商不能购买本身正常的产品(如果我放任何东西,我有另一个错误,说产品不存在).对于缺点,当我把测试产品"android.test.purchasse"时,我有同样的错误,然后我应该能够测试它.
我在那里用android.test.purchasse购买了,如果你已经成功我无法重置我感兴趣.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// load game data
loadData();
String base64EncodedPublicKey = "MY_KEY_BASE64";
PublicKey key = Security.generatePublicKey(base64EncodedPublicKey);
// Create the helper, passing it our context and the public key to verify signatures with
Log.d(TAG, "Creating IAB helper.");
mHelper = new IabHelper(this, base64EncodedPublicKey);
// enable debug logging (for a production application, you should set this to false).
mHelper.enableDebugLogging(true);
// Start setup. This is asynchronous and the specified listener
// will be called …Run Code Online (Sandbox Code Playgroud) 我是开发人员,我想在Api Youtube v3上上传视频,但它总是返回错误代码“ quotas超出了”。我从未成功上传视频,这很奇怪...
您是否有解决此问题的方法或联系支持地址的邮件以解决该问题?
我将带有视频的附件发送到api:
curl --request POST \
--url 'https://www.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus' \
--header 'authorization: Bearer MyAccessToken' \
--header 'cache-control: no-cache' \
--header 'content-type: application/octet-stream'
Run Code Online (Sandbox Code Playgroud)
这是错误:
{
"error": {
"errors": [{
"domain": "youtube.quota",
"reason": "quotaExceeded",
"message": "The request cannot be completed because you have exceeded your <a href=\"/youtube/v3/getting-started#quota\">quota</a>."
}],
"code": 403,
"message": "The request cannot be completed because you have exceeded your <a href=\"/youtube/v3/getting-started#quota\">quota</a>."
}
}
Run Code Online (Sandbox Code Playgroud)