expo build:androif failes (Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug])

Hi! Please, help me to solve the problem with build.
After starting build, everytime I get error about missing google-servise.json
But I don’t use any google services in my app

Log:

Configuration on demand is an incubating feature.
> Configure project :app
AWS Device Farm Plugin version 1.3
Installing unimodules:
 unimodules-core@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/@unimodules/core
 unimodules-react-native-adapter@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/@unimodules/react-native-adapter
 expo-ads-admob@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-ads-admob
 expo-ads-facebook@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-ads-facebook
 expo-analytics-amplitude@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-analytics-amplitude
 expo-analytics-segment@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-analytics-segment
 expo-app-auth@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-app-auth
 expo-app-loader-provider@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-app-loader-provider
 expo-application@2.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-application
 expo-av@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-av
 expo-background-fetch@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-background-fetch
 expo-barcode-scanner@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-barcode-scanner
 expo-battery@2.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-battery
 expo-brightness@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-brightness
 expo-calendar@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-calendar
 expo-camera@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-camera
 expo-cellular@2.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-cellular
 expo-constants@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-constants
 expo-contacts@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-contacts
 expo-crypto@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-crypto
 expo-device@2.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-device
 expo-document-picker@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-document-picker
 expo-error-recovery@1.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-error-recovery
 expo-face-detector@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-face-detector
 expo-facebook@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-facebook
 expo-file-system@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-file-system
 expo-font@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-font
 expo-gl-cpp@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-gl-cpp
 expo-gl@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-gl
 expo-google-sign-in@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-google-sign-in
 expo-haptics@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-haptics
 expo-image-manipulator@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-image-manipulator
 expo-image-picker@8.0.2 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-image-picker
 expo-intent-launcher@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-intent-launcher
 expo-keep-awake@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-keep-awake
 expo-linear-gradient@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-linear-gradient
 expo-local-authentication@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-local-authentication
 expo-localization@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-localization
 expo-location@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-location
 expo-mail-composer@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-mail-composer
 expo-media-library@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-media-library
 expo-network@2.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-network
 expo-permissions@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-permissions
 expo-print@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-print
 expo-random@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-random
 expo-secure-store@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-secure-store
 expo-sensors@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-sensors
 expo-sharing@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-sharing
 expo-sms@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-sms
 expo-speech@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-speech
 expo-sqlite@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-sqlite
 expo-task-manager@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-task-manager
 expo-video-thumbnails@4.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-video-thumbnails
 expo-web-browser@8.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/expo-web-browser
 unimodules-barcode-scanner-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-barcode-scanner-interface
 unimodules-camera-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-camera-interface
 unimodules-constants-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-constants-interface
 unimodules-face-detector-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-face-detector-interface
 unimodules-file-system-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-file-system-interface
 unimodules-font-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-font-interface
 unimodules-image-loader-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-image-loader-interface
 unimodules-permissions-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-permissions-interface
 unimodules-sensors-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-sensors-interface
 unimodules-task-manager-interface@5.0.0 from /app/turtle/workingdir/android/sdk36/android-shell-app/enabled-modules/unimodules-task-manager-interface
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :app:preBuild UP-TO-DATE
> Task :app:extractProguardFiles
> Task :app:preReleaseBuild
> Task :app:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:checkReleaseManifest
> Task :app:generateReleaseBuildConfig FAILED

[stderr]

FAILURE: Build failed with an exception.

[stderr]

* What went wrong:

[stderr]

Execution failed for task ':app:generateReleaseBuildConfig'.

[stderr]

> org.xml.sax.SAXParseException; systemId: file:/app/turtle/workingdir/android/sdk36/android-shell-app/app/src/main/AndroidManifest.xml; lineNumber: 327; columnNumber: 85; Element type "meta-data" must be followed by either attribute specifications, ">" or "/>".

[stderr]

* Try:

[stderr]

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.

[stderr]

* Get more help at https://help.gradle.org

[stderr]

BUILD FAILED in 1m 11s
3 actionable tasks: 3 executed
Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
    at Object.onceWrapper (events.js:418:26)
    at ChildProcess.emit (events.js:311:20)
    at ChildProcess.EventEmitter.emit (domain.js:482:12)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    ...
    at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:235:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:881:11)
    at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:420:5)
    at async runShellAppBuilder (/app/turtle/build/builders/android.js:79:9)
    at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:32:28)
    at async build (/app/turtle/build/jobManager.js:156:24)
    at async processJob (/app/turtle/build/jobManager.js:102:32)
    at async Object.doJob (/app/turtle/build/jobManager.js:35:5)
    at async main (/app/turtle/build/server.js:44:13)

My app.json
{

“expo”: {

"name": "app_name",

"slug": "app name_mobile_app",

"privacy": "public",

"sdkVersion": "36.0.0",

"platforms": [

  "ios",

  "android",

  "web"

],

"version": "1.5.0",

"orientation": "portrait",

"icon": "./assets/icon.png",  

"notification": {

  "icon": "./assets/notifications_icon.png",

  "iosDisplayInForeground": true

}, 

"androidStatusBar": {

  "backgroundColor": "#282936",

  "barStyle": "light-content"

},

"splash": {

  "image": "./assets/splash.png",

  "resizeMode": "cover",

  "backgroundColor": "#282a33"

},

"updates": {

  "fallbackToCacheTimeout": 0

},

"assetBundlePatterns": [

  "**/*"

],

"ios": {

  "supportsTablet": true,

  "infoPlist": {

    "NSCameraUsageDescription": "qweqeqweqewqewqewq",

    "NSPhotoLibraryUsageDescription": "qweqweqweqweqwe",

    "NSPhotoLibraryAddUsageDescription": "qweqweqeqweq",       

    "LSApplicationQueriesSchemes": ["tel", "facebook", "fbapi", "fb-messenger-share-api", "fbauth2", "fbshareextension", "instagram"],

    "facebookScheme": "fb11111111111111",

    "facebookAppId": "111111111111111",

    "facebookDisplayName": "app_name"   

  },

  "bundleIdentifier": "com.test.app_name"  

},

"android": {

  "package": "com.test.app_name",

  "versionCode": 7,      

  "permissions": [

    "CAMERA",

    "ACCESS_NETWORK_STATE"

  ]

},

"facebookScheme": "fb1111111111111111",

"facebookAppId": "1111111111111111",

"facebookDisplayName": "app_name"

}

}

My expo cli v 3.15.3
sdk 36

Thanks in advance

1 Like

It was fabsolutely my fault! For those who faced the same problem, check if you haven’t forgotten to execute ‘expo publish’ first… :slight_smile:

3 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.