AndroidPublisher API return projectNotLinked error

前端 未结 8 1810
栀梦
栀梦 2021-01-01 16:30

This happens when I was using Google Play Android Developer API in Google Developers Console to test the status of purchased product, and the result is always like this

8条回答
  •  难免孤独
    2021-01-01 16:52

    I got this too and just gave up on getting it to work, instead switching back to v1.1 of the API:

    final URL url = new URL(
            "https://www.googleapis.com/androidpublisher" +
            "/v1.1/applications/" + "com.example.app.id" +
            "/subscriptions/" + subcriptionId +
            "/purchases/" + googlePurchaseReceipt +
            "?access_token=" + googleAccessToken);
    

    Hopefully someone will post a better answer sometime and we can all switch to v2 of the API.

提交回复
热议问题