问题描述
我再也找不到实现Google Play服务(包括Google Cast,应用内结算等)所需的app_id
I can no longer find the app_id that is required for the implementation of Google Play Services including Google Cast, In-app Billing, etc.
示例:
CastOptions castOptions = new CastOptions.Builder()
.setReceiverApplicationId(context.getString(R.string.app_id))
.build();
它曾经是通过以下Google Play开发者控制台获得的:
It used to be obtained via the Google Play Developer Console here:
但是Google最近发布了他们的新Play控制台,并且内容已完全重组:
However Google recently released their new Play Console and things have been completely restructured:
现在在Play开发者控制台上的app_id在哪里?
Where is the app_id found now on the Play Developer Console?
推荐答案
@ ali-naddaf是正确的,在Google Play开发者控制台上找不到强制转换所需的应用程序ID.而是通过访问 https://cast.google.com/publish/#/overview 并创建一个新的应用程序.默认值为样式化的媒体接收器.创建应用程序实例后,将获得应用程序ID:
@ali-naddaf is correct, the application Id required for casting is not found on the Google Play Developer console. It is instead obtained by visiting https://cast.google.com/publish/#/overview and creating a new application. The default is a styled media receiver. Once you have created your application instance, you are given your application Id:
然后,您可以在字符串xml文件中实现该应用程序ID,以设置您的转换选项:
You can then implement that application id in a strings xml file to set up your cast options:
CastOptions castOptions = new CastOptions.Builder()
.setReceiverApplicationId(context.getString(R.string.app_id))
.build();
这篇关于您如何在2017 Google Play开发者控制台中找到您的Google Cast应用ID(app_id)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!