zoho / SalesIQ-Mobilisten-ReactNative

Your mobile app's ideal live chat partner. Power up your mobile App with the SalesIQ Mobilisten SDK for React-Native.
https://mobilisten.io/
9 stars 11 forks source link

Execution failed for task ':app:generatePackageList'. > argument type mismatch #90

Open Anilfeker21 opened 1 week ago

Anilfeker21 commented 1 week ago

i just install react-native-zohosalesiq-mobilisten and linked and added maven in build.gradlew in root level, now iam getting the below issue

my system Mac react-native: 0.64.2 distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 2077 file(s) to forward-jetify. Using 8 workers... info JS server already running. info Installing the app... Configuration on demand is an incubating feature.

Configure project :app Reading env from: .env Reading env from: .env.qa [react-native-background-geolocation] Purging debug resources in release build [react-native-background-geolocation] Purging debug resources in release build

Configure project :react-native-firebase_app :react-native-firebase_app package.json found at /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-firebase/app/package.json :react-native-firebase_app:firebase.bom using default value: 31.4.0 :react-native-firebase_app:play.play-services-auth using default value: 20.3.0 :react-native-firebase_app package.json found at /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-firebase/app/package.json :react-native-firebase_app:version set from package.json: 17.5.0 (17,5,0 - 17005000) :react-native-firebase_app:android.compileSdk using custom value: 30 :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 /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/react-native/android

Configure project :react-native-firebase_messaging :react-native-firebase_messaging package.json found at /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-firebase/messaging/package.json :react-native-firebase_app package.json found at /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-firebase/app/package.json :react-native-firebase_messaging:firebase.bom using default value: 31.4.0 :react-native-firebase_messaging package.json found at /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-firebase/messaging/package.json :react-native-firebase_messaging:version set from package.json: 17.5.0 (17,5,0 - 17005000) :react-native-firebase_messaging:android.compileSdk using custom value: 30 :react-native-firebase_messaging:android.targetSdk using custom value: 33 :react-native-firebase_messaging:android.minSdk using custom value: 23 :react-native-firebase_messaging:reactNativeAndroidDir /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/react-native/android

Configure project :react-native-i18n WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Task :app:generatePackageList FAILED

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.2/userguide/command_line_interface.html#sec:command_line_warnings 1 actionable task: 1 executed

FAILURE: Build failed with an exception.

BUILD FAILED in 6s

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:installEnvQaDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 6s

at makeError (/Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/execa/index.js:174:9)
at /Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)
at async Command.handleAction (/Users/bharathkumar/Downloads/ANIL/DriverMobileApp/src_tinting/node_modules/@react-native-community/cli/build/index.js:186:9)

info Run CLI with --verbose flag for more details.

bhahirathan-mb-11956 commented 1 week ago

Hi @Anilfeker21 ,

We apologize for the inconvenience. It looks like there is no error relevant to Mobilisten in the given stack trace. Please specify the issue or share the full stack trace so we can assist you better.

Also, we recommend changing the Gradle version above 8 in your gradle-wrapper.properties and trying it once.

Sample snippet:

distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip

Regards, Bhahirathan M, Zoho SalesIQ.

Anilfeker21 commented 1 week ago

@bhahirathan-mb-11956 , please check the logs

bharathkumar@Bharaths-MacBook-Air android % ./gradlew clean --stacktrace Configuration on demand is an incubating feature.

Configure project :app Reading env from: .env Reading env from: .env

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.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/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

bhahirathan-mb-11956 commented 6 days ago

Hi @Anilfeker21 ,

In the given error stack trace, we can see a build failure error KotlinJvmAndroidCompilation with name 'envProdDebug' not found, and we suspect that this might be causing the issue.

Please verify if anything is missing from your build.gradle files regarding the envProdDebug build type.

If the issue persists, please contact us at support@zohosalesiq.com. We will be happy to investigate this issue further for you.

Thanks.