react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.19k stars 878 forks source link

Build fails most of the time with the latest version + expo 47 #1124

Closed DominickVale closed 1 year ago

DominickVale commented 1 year ago

I just finished upgrading my app to react native 0.70.6. I have a couple of expo packages (I'm using bare react native) so I also had to upgrade expo to 47. I have no idea why expo is even part of the issue but the error mentions it.

Steps to Reproduce

Actual Behavior

Build crashes with

-----------
* What went wrong:
Execution failed for task ':expo:generateDebugRFile'.
> A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable
   > /home/me/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt

The only way to make it work is to run ./gradlew clean, start metro with --reset-cache and then rebuild everything. Which is bad because expo then downloads the boost library from scratch, making me waste a lot of time since my network connection isn't that fast and I need to rebuild the app many times ...

Environment

new architecture DISABLED, hermes enabled I only tried android 12 and 13 for now "expo": "^47.0.0", "@react-native-google-signin/google-signin": "^9.0.0", "react-native": "^0.70.6",

        buildToolsVersion = "33.0.0"
        minSdkVersion = 23
        compileSdkVersion = 33
        targetSdkVersion = 33
        kotlinVersion = '1.7.10'
        googlePlayServicesAuthVersion = "19.2.0"
...
        classpath("com.android.tools.build:gradle:7.2.1")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("de.undercouch:gradle-download-task:5.0.1")
        classpath 'com.google.gms:google-services:4.3.14'
vonovak commented 1 year ago

Hello and thanks for reporting, can you share the full stack trace? Thank you 🙂

DominickVale commented 1 year ago

Full log

Log without other packages warnings ``` WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. > Configure project :react-native-firebase_app :react-native-firebase_app package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/app/package.json :react-native-firebase_app:firebase.bom using default value: 31.1.0 :react-native-firebase_app:play.play-services-auth using default value: 20.3.0 :react-native-firebase_app package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/app/package.json :react-native-firebase_app:version set from package.json: 16.4.6 (16,4,6 - 16004006) :react-native-firebase_app:android.compileSdk using custom value: 33 :react-native-firebase_app:android.targetSdk using custom value: 33 :react-native-firebase_app:android.minSdk using custom value: 23 :react-native-firebase_app:reactNativeAndroidDir /home/dominick/Projects/MyApp/node_modules/react-native/android > Configure project :react-native-firebase_auth :react-native-firebase_auth package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/auth/package.json :react-native-firebase_app package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/app/package.json :react-native-firebase_auth:firebase.bom using default value: 31.1.0 :react-native-firebase_auth package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/auth/package.json :react-native-firebase_auth:version set from package.json: 16.4.6 (16,4,6 - 16004006) :react-native-firebase_auth:android.compileSdk using custom value: 33 :react-native-firebase_auth:android.targetSdk using custom value: 33 :react-native-firebase_auth:android.minSdk using custom value: 23 :react-native-firebase_auth:reactNativeAndroidDir /home/dominick/Projects/MyApp/node_modules/react-native/android > Configure project :react-native-firebase_firestore :react-native-firebase_firestore package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/firestore/package.json :react-native-firebase_app package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/app/package.json :react-native-firebase_firestore:firebase.bom using default value: 31.1.0 :react-native-firebase_firestore package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/firestore/package.json :react-native-firebase_firestore:version set from package.json: 16.4.6 (16,4,6 - 16004006) :react-native-firebase_firestore:android.compileSdk using custom value: 33 :react-native-firebase_firestore:android.targetSdk using custom value: 33 :react-native-firebase_firestore:android.minSdk using custom value: 23 :react-native-firebase_firestore:reactNativeAndroidDir /home/dominick/Projects/MyApp/node_modules/react-native/android > Configure project :react-native-firebase_storage :react-native-firebase_storage package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/storage/package.json :react-native-firebase_app package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/app/package.json :react-native-firebase_storage:firebase.bom using default value: 31.1.0 :react-native-firebase_storage package.json found at /home/dominick/Projects/MyApp/node_modules/@react-native-firebase/storage/package.json :react-native-firebase_storage:version set from package.json: 16.4.6 (16,4,6 - 16004006) :react-native-firebase_storage:android.compileSdk using custom value: 33 :react-native-firebase_storage:android.targetSdk using custom value: 33 :react-native-firebase_storage:android.minSdk using custom value: 23 :react-native-firebase_storage:reactNativeAndroidDir /home/dominick/Projects/MyApp/node_modules/react-native/android > Configure project :react-native-flipper WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33 This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32 This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33 > Configure project :react-native-reanimated AAR for react-native-reanimated has been found /home/dominick/Projects/MyApp/node_modules/react-native-reanimated/android/react-native-reanimated-70-hermes.aar WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33 This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32 This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33 The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal. Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects. If the parent project does not need the plugin, add 'apply false' to the plugin line. See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl The Kotlin plugin was loaded in the following projects: ':myapp-sound-engine', ':expo', ':expo-modules-core', ':react-native-gesture-handler', ... > Task :react-native-google-signin_google-signin:packageDebugAssets Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:packageDebugAssets' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/shader_assets/debug/out'. Reason: Task ':react-native-google-signin_google-signin:packageDebugAssets' uses this output of task ':react-native-google-signin-google-signin:compileDebugShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin-google-signin:packageDebugResources Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:packageDebugResources' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/res/resValues/debug'. Reason: Task ':react-native-google-signin-google-signin:packageDebugResources' uses this output of task ':react-native-google-signin_google-signin:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/res/rs/debug'. Reason: Task ':react-native-google-signin-google-signin:packageDebugResources' uses this output of task ':react-native-google-signin_google-signin:compileDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin_google-signin:packageDebugResources Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:packageDebugResources' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/res/resValues/debug'. Reason: Task ':react-native-google-signin_google-signin:packageDebugResources' uses this output of task ':react-native-google-signin-google-signin:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/res/rs/debug'. Reason: Task ':react-native-google-signin_google-signin:packageDebugResources' uses this output of task ':react-native-google-signin-google-signin:compileDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin_google-signin:compileDebugLibraryResources Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:compileDebugLibraryResources' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/packaged_res/debug'. Reason: Task ':react-native-google-signin_google-signin:compileDebugLibraryResources' uses this output of task ':react-native-google-signin-google-signin:packageDebugResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin-google-signin:compileDebugLibraryResources Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:compileDebugLibraryResources' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/packaged_res/debug'. Reason: Task ':react-native-google-signin-google-signin:compileDebugLibraryResources' uses this output of task ':react-native-google-signin_google-signin:packageDebugResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin-google-signin:parseDebugLocalResources Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:parseDebugLocalResources' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/packaged_res/debug'. Reason: Task ':react-native-google-signin-google-signin:parseDebugLocalResources' uses this output of task ':react-native-google-signin_google-signin:packageDebugResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin_google-signin:parseDebugLocalResources Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:parseDebugLocalResources' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/packaged_res/debug'. Reason: Task ':react-native-google-signin_google-signin:parseDebugLocalResources' uses this output of task ':react-native-google-signin-google-signin:packageDebugResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin_google-signin:copyDebugJniLibsProjectOnly Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:copyDebugJniLibsProjectOnly' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/merged_native_libs/debug/out'. Reason: Task ':react-native-google-signin_google-signin:copyDebugJniLibsProjectOnly' uses this output of task ':react-native-google-signin-google-signin:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin-google-signin:copyDebugJniLibsProjectOnly Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:copyDebugJniLibsProjectOnly' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/merged_native_libs/debug/out'. Reason: Task ':react-native-google-signin-google-signin:copyDebugJniLibsProjectOnly' uses this output of task ':react-native-google-signin_google-signin:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :expo-modules-core:downloadBoost UP-TO-DATE Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz > Task :expo-modules-core:downloadDoubleConversion UP-TO-DATE Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz > Task :react-native-google-signin-google-signin:generateDebugRFile Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:generateDebugRFile' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/local_only_symbol_list/debug/R-def.txt'. Reason: Task ':react-native-google-signin-google-signin:generateDebugRFile' uses this output of task ':react-native-google-signin_google-signin:parseDebugLocalResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/packaged_manifests/debug'. Reason: Task ':react-native-google-signin-google-signin:generateDebugRFile' uses this output of task ':react-native-google-signin_google-signin:processDebugManifest' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :expo:generateDebugRFile FAILED Execution optimizations have been disabled for task ':expo:generateDebugRFile' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt'. Reason: Task ':expo:generateDebugRFile' uses this output of task ':react-native-google-signin_google-signin:generateDebugRFile' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin_google-signin:generateDebugRFile Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:generateDebugRFile' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/local_only_symbol_list/debug/R-def.txt'. Reason: Task ':react-native-google-signin_google-signin:generateDebugRFile' uses this output of task ':react-native-google-signin-google-signin:parseDebugLocalResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/packaged_manifests/debug'. Reason: Task ':react-native-google-signin_google-signin:generateDebugRFile' uses this output of task ':react-native-google-signin-google-signin:processDebugManifest' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > Task :react-native-google-signin-google-signin:compileDebugJavaWithJavac Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/aidl_source_output_dir/debug/out'. Reason: Task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' uses this output of task ':react-native-google-signin_google-signin:compileDebugAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/renderscript_source_output_dir/debug/out'. Reason: Task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' uses this output of task ':react-native-google-signin_google-signin:compileDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/generated/source/buildConfig/debug'. Reason: Task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' uses this output of task ':react-native-google-signin_google-signin:generateDebugBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json'. Reason: Task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' uses this output of task ':react-native-google-signin_google-signin:javaPreCompileDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/compile_r_class_jar/debug/R.jar'. Reason: Task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' uses this output of task ':react-native-google-signin_google-signin:generateDebugRFile' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. ... other warnings about other packages info Writing bundle output to:, /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle info Writing sourcemap output to:, /home/dominick/Projects/MyApp/android/app/build/intermediates/sourcemaps/react/debug/index.android.bundle.packager.map info Done writing bundle output info Done writing sourcemap output info Copying 38 asset files info Done copying assets Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings Execution optimizations have been disabled for 14 invalid unit(s) of work during this build to ensure correctness. Please consult deprecation warnings for more details. 578 actionable tasks: 25 executed, 553 up-to-date Note: /home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/src/main/java/com/reactnativegooglesignin/RNGoogleSigninModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/src/main/java/com/reactnativegooglesignin/RNGoogleSigninModule.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:67:9: warning: the variable "console" was not declared in function "metroRequire" console.warn("Requiring module \"" + verboseName + "\" by name is only supported for " + "debugging purposes and will BREAK IN PRODUCTION!"); ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:430:33: warning: the variable "setTimeout" was not declared in function "metroHotUpdateModule" reactRefreshTimeout = setTimeout(function () { ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:516:18: warning: the variable "window" was not declared in function "performFullRefresh" if (typeof window !== "undefined" && window.location != null && typeof window.location.reload === "function") { ^~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:4317:20: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in function "injectInternals" if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:13621:52: warning: the variable "IS_REACT_ACT_ENVIRONMENT" was not declared in function "isLegacyActEnvironment" var isReactActEnvironmentGlobal = typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; ^~~~~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:13622:38: warning: the variable "jest" was not declared in function "isLegacyActEnvironment" var jestIsDefined = typeof jest !== "undefined"; ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:16326:13: warning: the variable "nativeFabricUIManager" was not declared in function "dispatchCommand" nativeFabricUIManager.dispatchCommand(stateNode.node, command, args); ^~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:2253:99: warning: the variable "document" was not declared in anonymous function " 89#" if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { ^~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:5045:27: warning: the variable "clearTimeout" was not declared in anonymous function " 89#" var cancelTimeout = clearTimeout; ^~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:18375:30: warning: the variable "MessageChannel" was not declared in function "enqueueTaskImpl" if (typeof MessageChannel === 'undefined') { ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:19814:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow" return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true; ^~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20761:12: warning: the variable "fetch" was not declared in anonymous function " 276#" fetch: fetch, ^~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20762:14: warning: the variable "Headers" was not declared in anonymous function " 276#" Headers: Headers, ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20763:14: warning: the variable "Request" was not declared in anonymous function " 276#" Request: Request, ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20764:15: warning: the variable "Response" was not declared in anonymous function " 276#" Response: Response ^~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20912:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer" var reader = new FileReader(); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20949:36: warning: the variable "Blob" was not declared in anonymous function " 287#" } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20951:40: warning: the variable "FormData" was not declared in anonymous function " 287#" } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { ^~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20953:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 287#" } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { ^~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:21180:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 296#" var xhr = new XMLHttpRequest(); ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20773:76: warning: the variable "self" was not declared in anonymous function " 279#" var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global; ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:25244:16: warning: the variable "AggregateError" was not declared in function "getAggregateError" if (typeof AggregateError === 'function') { ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:29768:7: warning: Direct call to eval(), but lexical scope is not supported. eval(code); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31244:19: warning: the variable "hasOwnProperty" was not declared in anonymous function " 753#" if (hasOwnProperty.call(reduced, attr)) { ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31303:22: warning: the variable "HTMLElement" was not declared in function "getDataType" if (typeof HTMLElement !== 'undefined' && data instanceof HTMLElement) { ^~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31881:18: warning: the variable "localStorage" was not declared in function "localStorageGetItem" return localStorage.getItem(key); ^~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31898:18: warning: the variable "sessionStorage" was not declared in function "sessionStorageGetItem" return sessionStorage.getItem(key); ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:37218:48: warning: the variable "navigator" was not declared in function "logElementToConsole" if (window.chrome || /firefox/i.test(navigator.userAgent)) { ^~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:34094:39: warning: the variable "performance" was not declared in anonymous function " 888#" var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function'; ^~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:41550:13: warning: the variable "cancelAnimationFrame" was not declared in function "toggleEnabled" cancelAnimationFrame(drawAnimationFrameID); ^~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:41585:34: warning: the variable "requestAnimationFrame" was not declared in function "traceUpdates" drawAnimationFrameID = requestAnimationFrame(prepareToDraw); ^~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:132973:99: warning: the variable "Intl" was not declared in function "PluralResolver" if ((!this.options.compatibilityJSON || this.options.compatibilityJSON === 'v4') && (typeof Intl === 'undefined' || !Intl.PluralRules)) { ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:139403:50: warning: the variable "ShadowRoot" was not declared in anonymous function " 4596#" if (targetElement.getRootNode() instanceof ShadowRoot) return true; ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:142439:26: warning: the variable "IntersectionObserver" was not declared in anonymous function " 4845#" var observer = new IntersectionObserver(function (entries) { ^~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:143679:30: warning: the variable "TouchEvent" was not declared in function "getClientPosition" if (event instanceof TouchEvent) { ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:143685:30: warning: the variable "MouseEvent" was not declared in function "getClientPosition" if (event instanceof MouseEvent) { ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:143647:123: warning: the variable "DocumentTouch" was not declared in anonymous function " 4923#" var touchSupported = isBrowser_1["default"] && ('ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch); ^~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145347:27: warning: the variable "DOMRectReadOnly" was not declared in function "createReadOnlyRect" var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object; ^~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145146:44: warning: the variable "MutationObserver" was not declared in anonymous function " 5030#" var mutationObserverSupported = typeof MutationObserver !== 'undefined'; ^~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145321:18: warning: the variable "SVGGraphicsElement" was not declared in anonymous function " 5057#" if (typeof SVGGraphicsElement !== 'undefined') { ^~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145414:20: warning: the variable "Element" was not declared in anonymous function " 5065#" if (typeof Element === 'undefined' || !(Element instanceof Object)) { ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:146212:20: warning: the variable "WebSocket" was not declared in function "connectWs" var ws = new WebSocket(socketUrl, protocols); ^~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:149729:39: warning: the variable "SC_DISABLE_SPEEDY" was not declared in anonymous function " 5295#" var DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean' ? SC_DISABLE_SPEEDY : typeof process !== 'undefined' && typeof process.env.REACT_APP_SC_DISABLE_SPEEDY !== 'undefined' && process.env.REACT_APP_SC_DISABLE_SPEEDY !== '' ? process.env.REACT_APP_SC_DISABLE_SPEEDY === 'false' ? false : process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process !== 'undefined' && typeof process.env.SC_DISABLE_SPEEDY !== 'undefined' && process.env.SC_DISABLE_SPEEDY !== '' ? process.env.SC_DISABLE_SPEEDY === 'false' ? false : process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== 'production'); ^~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:149940:19: warning: the variable "__webpack_nonce__" was not declared in function "getNonce" return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null; ^~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:152552:23: warning: the variable "path" was not declared in function "Input" this.file = path.resolve(opts.from); ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:224544:7: warning: Direct call to eval(), but lexical scope is not supported. eval(code); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:300391:28: warning: Direct call to eval(), but lexical scope is not supported. value[i] = eval(path); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:300404:33: warning: Direct call to eval(), but lexical scope is not supported. value[name] = eval(path); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:315116:51: warning: the variable "FileList" was not declared in function "R 9#" if (L && (e instanceof Blob || e instanceof FileList) || !r && !i(e)) return e; ^~~~~~~~ FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':expo:generateDebugRFile'. > A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable > /home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: java.lang.StackOverflowError (no error message) * 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 1m 37s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 Note: /home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/src/main/java/com/reactnativegooglesignin/RNGoogleSigninModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/src/main/java/com/reactnativegooglesignin/RNGoogleSigninModule.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:67:9: warning: the variable "console" was not declared in function "metroRequire" console.warn("Requiring module \"" + verboseName + "\" by name is only supported for " + "debugging purposes and will BREAK IN PRODUCTION!"); ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:430:33: warning: the variable "setTimeout" was not declared in function "metroHotUpdateModule" reactRefreshTimeout = setTimeout(function () { ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:516:18: warning: the variable "window" was not declared in function "performFullRefresh" if (typeof window !== "undefined" && window.location != null && typeof window.location.reload === "function") { ^~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:4317:20: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in function "injectInternals" if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:13621:52: warning: the variable "IS_REACT_ACT_ENVIRONMENT" was not declared in function "isLegacyActEnvironment" var isReactActEnvironmentGlobal = typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : undefined; ^~~~~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:13622:38: warning: the variable "jest" was not declared in function "isLegacyActEnvironment" var jestIsDefined = typeof jest !== "undefined"; ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:16326:13: warning: the variable "nativeFabricUIManager" was not declared in function "dispatchCommand" nativeFabricUIManager.dispatchCommand(stateNode.node, command, args); ^~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:2253:99: warning: the variable "document" was not declared in anonymous function " 89#" if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { ^~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:5045:27: warning: the variable "clearTimeout" was not declared in anonymous function " 89#" var cancelTimeout = clearTimeout; ^~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:18375:30: warning: the variable "MessageChannel" was not declared in function "enqueueTaskImpl" if (typeof MessageChannel === 'undefined') { ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:19814:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow" return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true; ^~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20761:12: warning: the variable "fetch" was not declared in anonymous function " 276#" fetch: fetch, ^~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20762:14: warning: the variable "Headers" was not declared in anonymous function " 276#" Headers: Headers, ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20763:14: warning: the variable "Request" was not declared in anonymous function " 276#" Request: Request, ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20764:15: warning: the variable "Response" was not declared in anonymous function " 276#" Response: Response ^~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20912:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer" var reader = new FileReader(); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20949:36: warning: the variable "Blob" was not declared in anonymous function " 287#" } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20951:40: warning: the variable "FormData" was not declared in anonymous function " 287#" } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { ^~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20953:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 287#" } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { ^~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:21180:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 296#" var xhr = new XMLHttpRequest(); ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:20773:76: warning: the variable "self" was not declared in anonymous function " 279#" var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global; ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:25244:16: warning: the variable "AggregateError" was not declared in function "getAggregateError" if (typeof AggregateError === 'function') { ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:29768:7: warning: Direct call to eval(), but lexical scope is not supported. eval(code); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31244:19: warning: the variable "hasOwnProperty" was not declared in anonymous function " 753#" if (hasOwnProperty.call(reduced, attr)) { ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31303:22: warning: the variable "HTMLElement" was not declared in function "getDataType" if (typeof HTMLElement !== 'undefined' && data instanceof HTMLElement) { ^~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31881:18: warning: the variable "localStorage" was not declared in function "localStorageGetItem" return localStorage.getItem(key); ^~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:31898:18: warning: the variable "sessionStorage" was not declared in function "sessionStorageGetItem" return sessionStorage.getItem(key); ^~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:37218:48: warning: the variable "navigator" was not declared in function "logElementToConsole" if (window.chrome || /firefox/i.test(navigator.userAgent)) { ^~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:34094:39: warning: the variable "performance" was not declared in anonymous function " 888#" var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function'; ^~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:41550:13: warning: the variable "cancelAnimationFrame" was not declared in function "toggleEnabled" cancelAnimationFrame(drawAnimationFrameID); ^~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:41585:34: warning: the variable "requestAnimationFrame" was not declared in function "traceUpdates" drawAnimationFrameID = requestAnimationFrame(prepareToDraw); ^~~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:132973:99: warning: the variable "Intl" was not declared in function "PluralResolver" if ((!this.options.compatibilityJSON || this.options.compatibilityJSON === 'v4') && (typeof Intl === 'undefined' || !Intl.PluralRules)) { ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:139403:50: warning: the variable "ShadowRoot" was not declared in anonymous function " 4596#" if (targetElement.getRootNode() instanceof ShadowRoot) return true; ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:142439:26: warning: the variable "IntersectionObserver" was not declared in anonymous function " 4845#" var observer = new IntersectionObserver(function (entries) { ^~~~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:143679:30: warning: the variable "TouchEvent" was not declared in function "getClientPosition" if (event instanceof TouchEvent) { ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:143685:30: warning: the variable "MouseEvent" was not declared in function "getClientPosition" if (event instanceof MouseEvent) { ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:143647:123: warning: the variable "DocumentTouch" was not declared in anonymous function " 4923#" var touchSupported = isBrowser_1["default"] && ('ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch); ^~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145347:27: warning: the variable "DOMRectReadOnly" was not declared in function "createReadOnlyRect" var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object; ^~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145146:44: warning: the variable "MutationObserver" was not declared in anonymous function " 5030#" var mutationObserverSupported = typeof MutationObserver !== 'undefined'; ^~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145321:18: warning: the variable "SVGGraphicsElement" was not declared in anonymous function " 5057#" if (typeof SVGGraphicsElement !== 'undefined') { ^~~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:145414:20: warning: the variable "Element" was not declared in anonymous function " 5065#" if (typeof Element === 'undefined' || !(Element instanceof Object)) { ^~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:146212:20: warning: the variable "WebSocket" was not declared in function "connectWs" var ws = new WebSocket(socketUrl, protocols); ^~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:149729:39: warning: the variable "SC_DISABLE_SPEEDY" was not declared in anonymous function " 5295#" var DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean' ? SC_DISABLE_SPEEDY : typeof process !== 'undefined' && typeof process.env.REACT_APP_SC_DISABLE_SPEEDY !== 'undefined' && process.env.REACT_APP_SC_DISABLE_SPEEDY !== '' ? process.env.REACT_APP_SC_DISABLE_SPEEDY === 'false' ? false : process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process !== 'undefined' && typeof process.env.SC_DISABLE_SPEEDY !== 'undefined' && process.env.SC_DISABLE_SPEEDY !== '' ? process.env.SC_DISABLE_SPEEDY === 'false' ? false : process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== 'production'); ^~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:149940:19: warning: the variable "__webpack_nonce__" was not declared in function "getNonce" return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null; ^~~~~~~~~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:152552:23: warning: the variable "path" was not declared in function "Input" this.file = path.resolve(opts.from); ^~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:224544:7: warning: Direct call to eval(), but lexical scope is not supported. eval(code); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:300391:28: warning: Direct call to eval(), but lexical scope is not supported. value[i] = eval(path); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:300404:33: warning: Direct call to eval(), but lexical scope is not supported. value[name] = eval(path); ^~~~~~~~~~ /home/dominick/Projects/MyApp/android/app/build/generated/assets/react/debug/index.android.bundle:315116:51: warning: the variable "FileList" was not declared in function "R 9#" if (L && (e instanceof Blob || e instanceof FileList) || !r && !i(e)) return e; ^~~~~~~~ FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':expo:generateDebugRFile'. > A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable > /home/dominick/Projects/MyApp/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: java.lang.StackOverflowError (no error message) * 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 1m 37s at makeError (/home/dominick/Projects/MyApp/node_modules/execa/index.js:174:9) at /home/dominick/Projects/MyApp/node_modules/execa/index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async runOnAllDevices (/home/dominick/Projects/MyApp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5) at async Command.handleAction (/home/dominick/Projects/MyApp/node_modules/@react-native-community/cli/build/index.js:142:9) info Run CLI with --verbose flag for more details. error Command failed with exit code 1. ```
shamilovtim commented 1 year ago

Also getting this error intermittently on 8.x of google sign in and expo 45.x

shamilovtim commented 1 year ago

Hey I see the related tickets were closed on the Expo repo. Wanted to call out what I'm seeing here since I suspect it might be related to an incompatibility introduced by Expo Bare (and Expo Modules?) rather than this plugin. It seems that autolinking is somehow linking this library twice. Here is the Gradle task list in our project with this lib: Screen Shot 2022-12-14 at 7 47 42 PM Notice it's listed twice. I looked for any indication of improper naming but don't see it. This package is tiny and it's very easy to inspect the folder structure and naming:

Screen Shot 2022-12-14 at 8 25 00 PM

In all of the other projects we have where Gradle converts the / in @mycompany/myproject to _ there seems to be no issue. However for some reason for this project alone Gradle creates a separate duplicate task with a - as well. But there's nothing special about this project I can ascertain other than an Expo Modules integration. That is why I assume this has to be Expo related. The build.gradle is incredibly vanilla and very easy to diff against common RN build.gradle files. It does not stand out in configuration at all. For example here it is diffed against a stable native plugin I wrote a couple of years ago:

Screen Shot 2022-12-14 at 8 30 23 PM

I did notice that the AGP version specified is quite outdated but it's not actually resolving so it can be safely deleted I think (happy to PR this one liner).

The only thing special about this plugin is that it has an Expo Adapter and some sort of recent Expo Modules integration. Off the top of my head these are the only things that stand out to me.

Related: https://github.com/expo/expo/issues/20140, https://github.com/react-native-google-signin/google-signin/issues/1112, #1092 #1124

We use expo bare, currently on sdk 45 and v8 of this project.

@brentvatne @vonovak

shamilovtim commented 1 year ago

I confirmed that the problem is namespacing with my fork, also replicated here: https://github.com/react-native-google-signin/google-signin/pull/1125

After removing the organization off of the project (@react-native-google-signin), the duplicate gradle task is gone and Android builds are reproducible. From what I can ascertain it seems the Expo Modules integration is conflicting with having an "@organization" namespace on an npm package and autolinking it to Android.

Xanewok commented 1 year ago

Nice detective work! I'm also using Expo bare and have noticed this error often; was wondering what was the underlying issue but couldn't pinpoint it myself.

Kudo commented 1 year ago

i'm sorry to introduce the issue from our integration. #1126 should address the issue.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 9.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

shamilovtim commented 1 year ago

Thanks for the fix @Kudo and the release @vonovak. Can we backport a patch for the previous major version? I can make the branch if needed.

vonovak commented 1 year ago

@shamilovtim the target branch does not exist so I believe I'll have to do it. I'll do it on Monday 👍

vonovak commented 1 year ago

@shamilovtim released https://github.com/react-native-google-signin/google-signin/releases/tag/v8.2.2 👍