Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
221 views
in Technique[技术] by (71.8m points)

android - RocketChatRN ReactNative build.gradle "com.google.gms.google-services"

I am building a whitelabeled version of the RocketChat Android-Client. I used the offical documentation of RocketChat. The following link goes to the doc. https://docs.rocket.chat/guides/developer/mobile-apps/whitelabeling-mobile-apps#running-the-app-1 I can run the app with

yarn android-whitelabel <YOURAPPID>

but I can't use the RUN > run 'app' Option in AndroidStudio. If I do, I got following Error:

A problem occurred evaluating project ':app'.
> Plugin with id 'com.google.gms.google-services' not found.

I already took a look and installed the GooglePlayServices SDKTool as well as the other play SDKTools and I checked the build.gradle dependencies in the root of the project as well. Plugin with id 'com.google.gms.google-services' not found I read this thread as well and try what is decribed in there. What is interesting that I can sync my gradle scripts without any error or build release apk and bundles for the PlayVersion of RocketChat. They all work fine. Only when I press the run button it thows this error. Does anyone have any idea what the problem could be?

(The only idea I have is that the run button doesn't use the yarn command to run the app. So that maybe the react native modules can't be loaded. Can I change that or is it easier to do this via the commandline. How are you running your app if it is a react native one?)

Thx

question from:https://stackoverflow.com/questions/65944080/rocketchatrn-reactnative-build-gradle-com-google-gms-google-services

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...