草庐IT

hello_services

全部标签

android - Android中是否有类似Apple Push Notification Service的推送通知服务?

我想为Android手机用户提供推送通知服务,Android中有没有类似ApplePushNotificationService的推送通知服务? 最佳答案 哦,是的!它叫做C2DM.请检查一下!编辑:Tutorial已添加链接!编辑:为了完整起见,C2DM现已弃用,取而代之的是GoogleCloudMessaging编辑:GCM现已被FirebaseCloudMessaging取代 关于android-Android中是否有类似ApplePushNotificationService的推

android - 从 Android 中的 Activity 启动服务时出现 "Unable to start service Intent"错误

当我尝试在“我的Activity”Activity上使用复选框来启动名为​​“MyService”的服务时,我在DDMS中看到以下错误:W/ActivityManager(73):UnabletostartserviceIntent{cmp=com.example.android.myprogram/.MyService}:notfound我使用了教程http://developer.android.com/resources/tutorials/views/hello-formstuff.html并将提供的代码添加到我的onCreate()方法的末尾。我在MyActivity.jav

android - 错误 : fix the version conflict (google-services plugin) using productFlavors

我知道存在版本冲突,但在Google推出新版本后问题仍然存在。Error:Executionfailedfortask':app:processCurrentDebugGoogleServices'.Pleasefixtheversionconflicteitherbyupdatingtheversionofthegoogle-servicesplugin(informationaboutthelatestversionisavailableathttps://bintray.com/android/android-tools/com.google.gms.google-service

android - 添加Google Play Services 9.0.0后Dex文件超过64k

我按照Firebase指南添加FCM,因此我将以下依赖项添加到我的应用程序gradle:compile'com.google.android.gms:play-services:9.0.0'applyplugin:'com.google.gms.google-services'这是我的项目gradle:classpath'com.google.gms:google-services:3.0.0'在此之后,我从Firebase控制台设置中添加了google-services.json,方法是下载它并将其添加到我的应用程序目录中。现在我收到这个错误:错误:.dex文件中方法引用的数量不能超

android - Xamarin 无法使用 : "Unexpected install output: cmd: Can' t find service: package"将应用程序部署到模拟器

我正在构建示例introxamarinformsapp使用VisualStudio2019和模拟器启动,但应用程序未部署并出现错误Unexpectedinstalloutput:cmd:Can'tfindservice:package":1>Nowaytoresolveconflictbetween"mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089"and"mscorlib,Version=2.0.5.0,Culture=neutral,PublicKeyToken=7cec85d7bea7

android - 在 [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug] 中找不到 google-services.json

我遇到错误,无法完成构建。我搜索了Stackoverflow和Github。我已经尝试了很多方法,但我无法修复。请帮忙。(1)在[src/nullnull/debug,src/debug/nullnull,src/nullnull,src/debug,src/nullnullDebug](2)registerResGeneratingTask已弃用,请使用registerGeneratedResFolders(FileCollection)当我将google-services.json添加到app/src/debug和app/src/release时,(1)将消失。然后(2)仍然发出警

android - 为 Android 生成 google-services.json

这可能是个愚蠢的问题,但我在尝试为我的应用生成google-services.json文件时遇到了问题。我正在关注这个guidefromthegoogledevelopersteam设置我的分析项目但是当我点击getconfigurationfile按钮没有任何反应,我只是得到一个永远不会结束的加载微调器。我在不同的浏览器上都试过了,还是一样。我检查了chrome控制台并得到:Refusedtodisplay'https://accounts.google.com/ServiceLogin?service=cloudconsole&osid=1&passiv…3Dtrue%26cntl

java - 安卓工作室 : How to exclude google-services module in product flavor?

在我的Android项目中,有几种产品风格:buildTypes{release{}debug{}staging{}}productFlavors{freeVersion{}proVersion{}partnerVersion{}}另外,我使用GoogleAnalytics:applyplugin:'com.google.gms.google-services'dependencies{compile'com.google.android.gms:play-services-analytics:8.4.0'}如何在其中一个中排除谷歌服务?例如,在:freeVersion{}

android - 如何在反编译apk中获取Google-Service.Json文件?

我想知道在对androidapk进行逆向工程时是否可以获取google-service.json文件。因为在firebaseGoogle-Servicejson文件中包含项目的所有键。 最佳答案 JSON文件未包含在您的APK中,您的google/firebaseGradle插件会读取JSON文件并将其插入到string资源文件中。但是,通过使用apktool等工具对apk进行逆向工程,任何人都可以访问这些资源文件,包括您的字符串资源文件和您放入java代码中的原始字符串。如果反编译APK,您将从字符串资源文件中获取这些secret

java - 无法为 intellij 解析符号 @integer/google_play_services_version

A不确定为什么会出现此错误...这是我的AndroidManifest.xml文件。我添加了GooglePlayServices、Repository和AndroidSupportLibrary。不确定我是否需要另一个插件或什么 最佳答案 尝试在build.gradle文件中添加:dependencies{compile'com.google.android.gms:play-services:7.5.0'} 关于java-无法为intellij解析符号@integer/google_p