eigen icon indicating copy to clipboard operation
eigen copied to clipboard

File google-services.json is missing

Open heylee-svg opened this issue 3 years ago • 5 comments

I build the project it show missing google-service.json file did it miss upload?

Execution failed for task ':app:processDebugGoogleServices'.

File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: /Users/dhg/reactnative/eigen/android/app/src/debug/google-services.json /Users/dhg/reactnative/eigen/android/app/src/google-services.json /Users/dhg/reactnative/eigen/android/app/src/Debug/google-services.json /Users/dhg/reactnative/eigen/android/app/google-services.json

heylee-svg avatar Feb 22 '22 07:02 heylee-svg

Yeah, Me too

ahmamedhat avatar Apr 26 '22 18:04 ahmamedhat

@ahmamedhat hey just add google-service.json file to project/android folder, create that g-service.json file by creating a project in firebase, & dont forget to edit the "package_name" inside g-s.json file to "package_name": "net.artsy.app"

abhishek-netizen avatar Apr 26 '22 19:04 abhishek-netizen

@abhishek-netizen Thank you

ahmamedhat avatar Apr 26 '22 20:04 ahmamedhat

@abhishek-netizen Hey, now I'm getting errors as the .env.example values all has '-' value, compiler is telling me that these values are undefined.

a:57: error: cannot find symbol String segmentWriteKey = BuildConfig.SEGMENT_PRODUCTION_WRITE_KEY_ANDROID; ^ symbol: variable SEGMENT_PRODUCTION_WRITE_KEY_ANDROID location: class net.artsy.app.BuildConfig /Users/ahmadmedhat/Documents/React-Native-Practice/eigen/android/app/src/main/java/net/artsy/app/MainApplication.java:59: error: cannot find symbol segmentWriteKey = BuildConfig.SEGMENT_STAGING_WRITE_KEY_ANDROID; ^ symbol: variable SEGMENT_STAGING_WRITE_KEY_ANDROID location: class net.artsy.app.BuildConfig /Users/ahmadmedhat/Documents/React-Native-Practice/eigen/android/app/src/main/java/net/artsy/app/MainApplication.java:61: error: cannot find symbol Analytics analytics = new Analytics.Builder(this, ReactNativeConfigUtils.decode(segmentWriteKey, BuildConfig.XOR_KEY)) ^ symbol: variable XOR_KEY location: class net.artsy.app.BuildConfig Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 errors

ahmamedhat avatar Apr 26 '22 21:04 ahmamedhat

same here, i am facing this error too, is there any example to get to know what to send in env file

abhishek-netizen avatar Apr 28 '22 05:04 abhishek-netizen

Hey we merged a PR recently that we believe should fix this: https://github.com/artsy/eigen/pull/7024, there are instructions in https://github.com/artsy/eigen/blob/main/docs/getting_started.md for independent contributors, let us know if you still have trouble!

brainbicycle avatar Apr 03 '23 13:04 brainbicycle

@brainbicycle #7024 seems to fixes Google Services for iOS, but not for Android

AAverin avatar Apr 24 '23 13:04 AAverin

I have used this mock version to workaround:

{
  "project_info": {
    "project_id": "PRODJECT-ID",
    "project_number": "PROJECT-NUMBER",
    "name": "APPLICATION-NAME"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:PROJECT-NUMBER:android:HASH-FOR-FLAVOR1",
        "client_id": "android:net.artsy.app",
        "client_type": 1,
        "android_client_info": {
          "package_name": "net.artsy.app"
        }
      },
      "oauth_client": [
        {
          "client_id": ""
        }
      ],
      "api_key": [
        {
          "current_key": ""
        }
      ],
      "services": {
        "analytics_service": {
          "status": 1
        },
        "cloud_messaging_service": {
          "status": 2,
          "apns_config": []
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "google_signin_service": {
          "status": 1
        },
        "ads_service": {
          "status": 1
        }
      }
    }
  ],
  "client_info": [],
  "ARTIFACT_VERSION": "1"
}

AAverin avatar Apr 24 '23 13:04 AAverin