chatwoot / chatwoot-mobile-app

Mobile app for Chatwoot - React Native
https://www.chatwoot.com/mobile-apps
MIT License
601 stars 274 forks source link

bug: [Error] - :app:processDebugGoogleServices #646

Open renat473 opened 1 year ago

renat473 commented 1 year ago

hello everyone, I'm having problems trying to build and returning the following error message :app:processDebugGoogleServices I thought it could be the google-service.json file but it's in the correct directory oriented by the application. Version Android image

renat473 commented 1 year ago

help @muhsin-k

muhsin-k commented 1 year ago

Can you check google-services.json file was added or not? CleanShot 2023-03-14 at 10 57 26

renat473 commented 1 year ago

Yes, one of the main items I checked was the google-services.json file

Task :app:processDebugGoogleServices FAILED Parsing json file: C:\Users\Admin\Desktop\chatwoot-mobile-app\android\app\google-services.json

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 58 actionable tasks: 2 executed, 56 up-to-date

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 5m 7s

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.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 5m 7s

at makeError (C:\Users\Admin\Desktop\chatwoot-mobile-app\node_modules\execa\index.js:174:9)
at C:\Users\Admin\Desktop\chatwoot-mobile-app\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\Users\Admin\Desktop\chatwoot-mobile-app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\Users\Admin\Desktop\chatwoot-mobile-app\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. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image

renat473 commented 1 year ago

hello @muhsin-k

Do you have any other suggestions I can check out?

muhsin-k commented 1 year ago

@renat473 It Seems like some build issues related to RN. Can you check if other react native projects are working or not? Try to scaffold a new RN project.

renat473 commented 1 year ago

and the first project, I never got to do some kind of build.

Is there any minimum application configuration to be used @muhsin-k ?

renat473 commented 1 year ago

OS: Windows 10 10.0.19044 CPU: (4) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz Memory: 1.81 GB / 7.73 GB Binaries: Node: 18.14.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-213.7172.25.2113.9123335 Visual Studio: Not Found Languages: Java: 11.0.16.1 npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.6 => 0.70.6 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

renat473 commented 1 year ago

any tips on what i can try @muhsin-k ?