草庐IT

service_missing

全部标签

安卓工作室- "SDK tools directory is missing"

当我启动AndroidStudio时,它会显示一个标题为“下载组件”的窗口,上面写着:“AndroidSDK安装到:C:/Users/user/AppData/Local/android/SDK2SDK工具目录丢失”我无法修复它,我需要帮助! 最佳答案 我在寻找uiautomatorviewer.bat时发现了同样的问题。安装Androidstudio3.6.2(在Win10上)后,我在SDKManager中寻找AndroidSDKTools部分。目前,此部分被隐藏为已过时。修复:取消选中HideObsoletePackages,然

android - 使用 Service 运行后台并创建通知

我希望我的应用程序在单击按钮时启动服务,并且服务应该在后台运行以在一天中的特定时间显示通知。我有以下代码来执行此操作。但它显示了我不明白的错误。我是Android新手,这是我第一个使用Service的应用程序。任何帮助,将不胜感激。提前致谢。AndroidManifest.xmlCreateNotificationActiviy.javapackagecom.example.newtrial;importandroid.os.Bundle;importandroid.app.Activity;importandroid.app.Notification;importandroid.ap

android - 使用 Service 运行后台并创建通知

我希望我的应用程序在单击按钮时启动服务,并且服务应该在后台运行以在一天中的特定时间显示通知。我有以下代码来执行此操作。但它显示了我不明白的错误。我是Android新手,这是我第一个使用Service的应用程序。任何帮助,将不胜感激。提前致谢。AndroidManifest.xmlCreateNotificationActiviy.javapackagecom.example.newtrial;importandroid.os.Bundle;importandroid.app.Activity;importandroid.app.Notification;importandroid.ap

安卓播放服务6.5 : LocationClient is missing

更新到GooglePlay服务6.5.87后,我的应用由于缺少LocationCLient类而无法编译。documentationlink目前已损坏(404NotFound)我该如何解决?我想接收位置更新、使用地理围栏等。 最佳答案 LocationClient类已替换为新的FusedLocationProviderApi和GeofencingApi,两者都使用共同的GoogleApiClient连接到GooglePlay服务的连接技术。连接后,可以调用requestLocationUpdates()等方法:LocationRequ

安卓播放服务6.5 : LocationClient is missing

更新到GooglePlay服务6.5.87后,我的应用由于缺少LocationCLient类而无法编译。documentationlink目前已损坏(404NotFound)我该如何解决?我想接收位置更新、使用地理围栏等。 最佳答案 LocationClient类已替换为新的FusedLocationProviderApi和GeofencingApi,两者都使用共同的GoogleApiClient连接到GooglePlay服务的连接技术。连接后,可以调用requestLocationUpdates()等方法:LocationRequ

android - Google Play Services V2 库中的 NoClassDefFoundError

在遵循officialtutorial之后尝试使用GooglePlayServicesV2库时出现以下异常.java.lang.NoClassDefFoundError:com.google.android.gms.R$stringatcom.google.android.gms.common.GooglePlayServicesUtil.b(UnknownSource)atcom.google.android.gms.common.GooglePlayServicesUtil.a(UnknownSource)atcom.google.android.gms.common.Google

android - Google Play Services V2 库中的 NoClassDefFoundError

在遵循officialtutorial之后尝试使用GooglePlayServicesV2库时出现以下异常.java.lang.NoClassDefFoundError:com.google.android.gms.R$stringatcom.google.android.gms.common.GooglePlayServicesUtil.b(UnknownSource)atcom.google.android.gms.common.GooglePlayServicesUtil.a(UnknownSource)atcom.google.android.gms.common.Google

Android Speech Recognition as a service on Android 4.1 & 4.2

我已经设法让连续语音识别工作(使用SpeechRecognizer类)作为所有Android版本(最高4.1)的服务。我的问题是让它在4.1和4.2版本上运行,因为众所周知,API在语音识别开始后的几秒钟内没有按照记录的那样运行,如果没有检测到语音输入,那么它就像如果语音识别器无声无息地死去。(http://code.google.com/p/android/issues/detail?id=37883)我发现了一个提出解决此问题的方法的问题(VoiceRecognitionstopslisteningafterafewseconds),但我不确定如何实现此解决方案所需的处理程序。我知

Android Speech Recognition as a service on Android 4.1 & 4.2

我已经设法让连续语音识别工作(使用SpeechRecognizer类)作为所有Android版本(最高4.1)的服务。我的问题是让它在4.1和4.2版本上运行,因为众所周知,API在语音识别开始后的几秒钟内没有按照记录的那样运行,如果没有检测到语音输入,那么它就像如果语音识别器无声无息地死去。(http://code.google.com/p/android/issues/detail?id=37883)我发现了一个提出解决此问题的方法的问题(VoiceRecognitionstopslisteningafterafewseconds),但我不确定如何实现此解决方案所需的处理程序。我知

android - 如何在 Android 中添加 google-services.json?

错误是:Filegoogle-services.jsonismissingfrommodulerootfolder.TheGoogleQuickstartPlugincannotfunctionwithoutit. 最佳答案 已根据developer.google.comhttps://developers.google.com/cloud-messaging/android/client#get-config上的文档解决了上述问题2018Edit:GCMDeprecated,useFCMgoogle-services.json文件