google-signin icon indicating copy to clipboard operation
google-signin copied to clipboard

[Android] Build emits a lot of Gradle warnings

Open renchap opened this issue 2 years ago • 6 comments

When building an app using react-native-google-sign-in with a recent Gradle version, the logs are full (a few dozen occurences) of those Gradle warnings:

- Gradle detected a problem with the following location: '/Users/renchap/dev/project/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt'. Reason: Task ':react-native-google-signin_google-signin:verifyReleaseResources' uses this output of task ':react-native-google-signin-google-signin:processReleaseManifest' 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.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/Users/renchap/dev/project/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/merged_res/release'. Reason: Task ':react-native-google-signin_google-signin:verifyReleaseResources' uses this output of task ':react-native-google-signin-google-signin:mergeReleaseResources' 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.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Steps to Reproduce

Building any RN app with this package and a recent Gradle version (for example with RN 0.68) is enough.

Expected Behavior

No warnings are emitted

Actual Behavior

The above warnings are emitted :)

Environment

Please provide

  • @react-native-google-signin/google-signin version: 7.7.2
  • react-native version: 0.68.0
  • Gradle version (from gradle-wrapper.properties): 7.3.3

renchap avatar Mar 30 '22 20:03 renchap

I face same issue. I get this error when build release: "react-native-google-signin-google-signin:mergeReleaseResources " image

khanhkom avatar Apr 02 '22 04:04 khanhkom

This solution helped me: https://github.com/react-native-google-signin/google-signin/issues/965#issuecomment-868972453

rodrigosoareschaves avatar May 13 '22 11:05 rodrigosoareschaves

facing similar issue when building app using

expo run:android --device command

`

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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Task :expo:generateDebugRFile 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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. Note: /Users/gshewale/Projects/Grattitude/dev/grattitude/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: /Users/gshewale/Projects/Grattitude/dev/grattitude/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.

Task :react-native-google-signin-google-signin:bundleLibCompileToJarDebug Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:bundleLibCompileToJarDebug' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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:bundleLibCompileToJarDebug' 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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. Note: /Users/gshewale/Projects/Grattitude/dev/grattitude/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: /Users/gshewale/Projects/Grattitude/dev/grattitude/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.

Task :react-native-google-signin_google-signin:bundleLibRuntimeToJarDebug Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:bundleLibRuntimeToJarDebug' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/javac/debug/classes'. Reason: Task ':react-native-google-signin_google-signin:bundleLibRuntimeToJarDebug' uses this output of task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' 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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Task :react-native-google-signin_google-signin:bundleLibCompileToJarDebug Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:bundleLibCompileToJarDebug' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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:bundleLibCompileToJarDebug' 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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/javac/debug/classes'. Reason: Task ':react-native-google-signin_google-signin:bundleLibCompileToJarDebug' uses this output of task ':react-native-google-signin-google-signin:compileDebugJavaWithJavac' 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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Task :react-native-google-signin-google-signin:bundleLibRuntimeToJarDebug Execution optimizations have been disabled for task ':react-native-google-signin-google-signin:bundleLibRuntimeToJarDebug' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/javac/debug/classes'. Reason: Task ':react-native-google-signin-google-signin:bundleLibRuntimeToJarDebug' uses this output of task ':react-native-google-signin_google-signin:compileDebugJavaWithJavac' 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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Task :expo:compileDebugKotlin Execution optimizations have been disabled for task ':expo:compileDebugKotlin' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/compile_library_classes_jar/debug/classes.jar'. Reason: Task ':expo:compileDebugKotlin' uses this output of task ':react-native-google-signin_google-signin:bundleLibCompileToJarDebug' 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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Task :expo:compileDebugJavaWithJavac Execution optimizations have been disabled for task ':expo:compileDebugJavaWithJavac' to ensure correctness due to the following reasons:

  • Gradle detected a problem with the following location: '/Users/gshewale/Projects/Grattitude/dev/grattitude/node_modules/@react-native-google-signin/google-signin/android/build/intermediates/compile_library_classes_jar/debug/classes.jar'. Reason: Task ':expo:compileDebugJavaWithJavac' uses this output of task ':react-native-google-signin_google-signin:bundleLibCompileToJarDebug' 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.2/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: '/Users/gshewale/Projects/Grattitude/dev/grattitude/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.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. `

gshewale avatar Aug 08 '22 06:08 gshewale

Facing the same issue while ./gradlew bundleRelease in android folder

prateekjain98 avatar Sep 06 '22 16:09 prateekjain98

@prateekjain98 Try: ./gradlew app:bundleRelease

rodrigosoareschaves avatar Sep 06 '22 17:09 rodrigosoareschaves

@prateekjain98 Try: ./gradlew app:bundleRelease

Tried the same, but still getting the same issue. With warnings, I'm able to debug the repo but when I make a release build, the signin does not work properly

prateekjain98 avatar Sep 07 '22 14:09 prateekjain98

Also getting these here. Changing the gradle command doesn't do anything.

shamilovtim avatar Dec 13 '22 23:12 shamilovtim

supposedly closed via #1126

please open a new issue if the problem persists Thank you 🙂

vonovak avatar Dec 19 '22 15:12 vonovak