FrogSquare / GodotGoogleService

Google play service, login, achievements, leaderboard.
Apache License 2.0
105 stars 14 forks source link

Gradlew build fails #21

Closed FlavioFS closed 5 years ago

FlavioFS commented 5 years ago

I cannot build it becaus Gradlew fails. This module misses some google services json file.
Ubuntu 18.04.2 LTS
Modules:

FAILURE: Build failed with an exception.

BUILD FAILED in 37s 10 actionable tasks: 10 executed

RameshRavone commented 5 years ago

You need to download the google-service.json file from play store console

On Tue, Jun 11, 2019, 4:49 AM Flávio Freitas notifications@github.com wrote:

I cannot build it becaus Gradlew fails. This module misses some google services json file. Ubuntu 18.04.2 LTS Modules:

  • GodotAds
  • GodotGoogleService
  • GodotSql

Task :checkDebugClasspath Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':processDebugGoogleServices'.> File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: /home/username/repos/godot31/platform/android/java/src/nullnull/debug/google-services.json /home/username/repos/godot31/platform/android/java/src/debug/nullnull/google-services.json /home/username/repos/godot31/platform/android/java/src/nullnull/google-services.json /home/username/repos/godot31/platform/android/java/src/debug/google-services.json /home/username/repos/godot31/platform/android/java/src/nullnullDebug/google-services.json /home/username/repos/godot31/platform/android/java/google-services.json
  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 37s 10 actionable tasks: 10 executed

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/21?email_source=notifications&email_token=ACNHWPX5QKDBE4AFSO2UDGTPZ3OQHA5CNFSM4HWZJ2LKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYVZU7Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNHWPXQ7DZHMHML6SCJ6JLPZ3OQHANCNFSM4HWZJ2LA .

FlavioFS commented 5 years ago

Sorry if my question is basic, I am not much into Google's APIs. Where should I place that file?

FlavioFS commented 5 years ago

Now I am starting to remember that resources xml in Play Services Console. Is that one you mean? The one with the achievements, leaderboards etc?

RameshRavone commented 5 years ago

At, GODOT_SRC/platform/android/java/

You could read the README.md file you know

On Tue, Jun 11, 2019, 5:34 AM Flávio Freitas notifications@github.com wrote:

Sorry if my question is basic, I am not much into Google's APIs. Where should I place that file?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/21?email_source=notifications&email_token=ACNHWPXDOTGEXHHX5THTYA3PZ3T2HA5CNFSM4HWZJ2LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLRX6A#issuecomment-500636664, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNHWPU76IRTCZRI7YBKHYLPZ3T2HANCNFSM4HWZJ2LA .

FlavioFS commented 5 years ago

I've read the README file so many times. O.o I didn't see anything about this json file. Maybe I'm just so tired of trying to compile this I can't even think correctly anymore. More than a week trying to get this to work. xD

FlavioFS commented 5 years ago

Ctrl + F README, typed "json". No ocurrences. Is it really there? o.o"

RameshRavone commented 5 years ago

Hmmm, seems I didn't add it there, a lot is missing, well I'll fix that with my next push to support godot 3.2

On Tue, Jun 11, 2019, 5:40 AM Flávio Freitas notifications@github.com wrote:

Ctrl + F README, typed "json". No ocurrences. Is it really there? o.o"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/21?email_source=notifications&email_token=ACNHWPTGQZCPCFAR64G3W6DPZ3UP7A5CNFSM4HWZJ2LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLR76Q#issuecomment-500637690, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNHWPW5QCNJWYNHKP4YGBDPZ3UP7ANCNFSM4HWZJ2LA .

FlavioFS commented 5 years ago

Ty, I 'll keep trying to get this json file. Google is driving me crazy already, lol.

FlavioFS commented 5 years ago

Just one last question... Do I need a Firebase project to download that json file? Please say no, haha

FlavioFS commented 5 years ago

Yeah... I had to go to Firebase Console and link my Android app to get the file... Why, Google? Why...?

RameshRavone commented 5 years ago

The reason for using google-service.json file is for convenience the file will have a lot of details on ids and signs that will be good for apk sign and verification google does some complecated stuff in its publisher console it always crazy, but once every thing is done, you game/app will be secure (well that is what google says anyway)

On Tue, Jun 11, 2019, 6:14 AM Flávio Freitas notifications@github.com wrote:

Yeah... I had to go to Firebase Console https://console.firebase.google.com and link my Android app to get the file... Why, Google? Why...?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/21?email_source=notifications&email_token=ACNHWPVNGYSYJZHBPDWO6ATPZ3YQFA5CNFSM4HWZJ2LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLTNPI#issuecomment-500643517, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNHWPT7733L5RUGBGBCKWLPZ3YQFANCNFSM4HWZJ2LA .

FlavioFS commented 5 years ago

Downloading json from Firebase worked indeed, ty for the fast reply! it-worked