草庐IT

play-services-flags

全部标签

android - Service.startForeground() 在使用 ServiceTestCase 运行时抛出 NullPointerException

This是一个已有2年历史的恼人Android错误。我的问题是,除了修改Android源代码并重新编译之外,有人知道解决此问题的任何方法吗?为了完成,这是我的代码:引发NPE的服务子类方法:/**Showsnotificationofstartedservice*/privatevoiddoStartForeground(){//PreparenotificationfinalNotificationHelpernh=doNotification("Servicestarted");//StartforegroundstartForeground(nh.getNotificationI

android - Play 商店说我的手机不支持我自己的应用程序?

我的list中有这些android权限。android.permission.INTERNETandroid.permission.ACCESS_NETWORK_STATEandroid.permission.ACCESS_FINE_LOCATIONandroid.permission.CAMERA,android.permission.WRITE_EXTERNAL_STORAGEandroid.permission.SEND_SMS,android.permission.SYSTEM_ALERT_WINDOWandroid.permission.READ_EXTERNAL_STORA

关于Context.startForegroundService() did not then call Service.startForeground()的解决办法

文章目录关于Context.startForegroundService()didnotthencallService.startForeground()的解决办法第一处:停止服务第二处:超时结论参考关于Context.startForegroundService()didnotthencallService.startForeground()的解决办法有天突然报了以下错误android.app.RemoteServiceException:Context.startForegroundService()didnotthencallService.startForeground()顺着这个提示

android - 如何在不同进程中建立Activity和Service之间的双向通信?

我正在努力在不同进程中运行的Activity和服务之间建立双向通信。从Activity中查询进程,没什么大不了的。但我希望进程在事件上通知Activity。其背后的想法是:该服务独立于实际应用程序运行。它定期查询网络服务器。如果在网络服务器上发现新任务,该进程应通知该Activity。我找到了thisthread在AndDev.org上,但它似乎对我不起作用。我一直在摆弄BroadcastReceiver。我已经实现了一个应该通知Activity的接口(interface),但问题是监听器始终为null,因为来自进程的广播是通过Intent完成的,因此扩展BroadcastReceiv

android - Google Play 服务需要访问哪些 URL?

我的应用程序必须接收推送通知,现在在GoogleCloudMessaging.register()调用后收到SERVICE_NOT_AVAILABLE。我的客户在他的办公室有严格的防火墙,他无法访问GooglePlay服务。我需要向他提供GooglePlay服务需要访问的所有URL的列表,以便他可以将其添加到白名单。到目前为止,我的列表中只有一个url:googleapis.com我没有找到关于这个主题的任何信息,所以我将不胜感激。 最佳答案 查看documentationforGCM,这似乎是你的答案:Note:Ifyourorg

android - play_licensing 使用 downloader_library 抛出 AIDL 错误,用于使用 Gradle 进行 APK 扩展

我尝试使用APK扩展库zip_file和downloader_library(需要play_licensing)。zip_file工作正常,因为它没有依赖项,但play_licensing在我尝试Gradle同步时抛出错误。AndroidStudio吐出此错误日志:Information:Gradletasks[:app:generateGoogleDebugSources,:app:libs:downloader_library:generateDebugSources,:app:libs:play_licensing:generateDebugSources,:app:libs:z

android - WINDOW_SERVICE 无法解析为变量

我认为WINDOW_SERVICE应该是android.content.Context中定义的常量。http://developer.android.com/reference/android/content/Context.html#WINDOW_SERVICE当我在下面的代码段中使用它时,它会抛出一个错误,指出它无法作为变量解析。显示显示=((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();完整代码如下:packagecom.commonsware.android.skeleton;import

请勿工作方法findViewById()和play(),并且在Android Studio中不工作类视图

请勿工作方法findViewById()和play(),也不在AndroidStudio中工作类视图。我正在从AndroidStudio编译器中收到此错误消息error:cannotfindsymbolclassviewerror:cannotfindsymbolmethodFindViewById(int)error:cannotfindsymbolmethodplay()这是我的代码:packagecom.example.karol.androidappwithsound;importandroid.widget.Button;importandroid.view.View;importa

android - 使用 play-services-xxx :9. 8.00 后 Firebase 错误无法访问 zzanb

当我使用最新版本的com.google.android.gms:play-services-xxx:9.8.00时收到以下消息Error:(32,28)错误:无法访问zzanb找不到com.google.android.gms.internal.zzanb的类文件错误是由调用语句引起的:FirebaseAuth.getInstance().getCurrentUser().getUid();我该如何解决这个问题?谢谢。更新:问题已解决最新更新的firebase9.8.0版本与google-service9.8.0版本兼容。现在,一切正常。注意:Firebase和GooglePlay服务

android - 我从 Play 管理中心收到以下错误,我无法编辑版本或 Google Play 信息

这个问题在这里已经有了答案:Googleplayconsolesaid"Youcan'teditthisappuntilyoucreateanewappreleasedeclaringsensitivepermissions"howtofixit?(10个答案)关闭3年前。Youwillnotbeabletoeditthisapplicationuntilyoucreateadifferentversioninwhichyoudeclaresensitivepermissions最近,当我尝试更新应用程序时遇到此错误,但要么让我上传任何内容来修复它,要么更改Play商店信息。我到处搜索