Var*_*lta 12 google-api google-cloud-messaging wear-os
我有一个Android Wear应用程序,在我的Moto360上工作正常.它可以在Google管理控制台中访问Google Play服务和GCM API.然后我尝试使用另一块手表(LG G Watch).因为我只能随时将一只手表与手机配对,所以我必须"忘记"moto360才能与LG G手表配对.现在我似乎无法连接到Google App API(GCM或播放服务).我收到以下错误:
I/GMPM ( 2746): App measurement is starting up
E/GMPM ( 2746): getGoogleAppId failed with status: 10
E/GMPM ( 2746): Uploading is not possible. App measurement disabled
Run Code Online (Sandbox Code Playgroud)
此错误发生在手表和随附的移动应用程序的logcat中.我试着查看状态代码但找不到任何信息.有谁可以帮忙收集这个状态代码的含义?
小智 2
addApi用。。。来代替addApiIfAvailable
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApiIfAvailable(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15509 次 |
| 最近记录: |