OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.57k stars 373 forks source link

Execution failed for task ':app:checkReleaseDuplicateClasses' #1429

Closed ronal2s closed 1 year ago

ronal2s commented 2 years ago

Description: Cannot build app due to error "Execution failed for task ':app:checkReleaseDuplicateClasses'" 5 days ago the build was working well, today I'm trying to build the same app without any changes but now is failing.

Environment One Signal version: 4.3.11 added by yarn Expo Project using EAS Expo Project NOT ejected, no android folder

Steps to Reproduce Issue: eas build, select android

Anything else: Error picture

image

Dependencies

"dependencies": {
    "@expo/config-plugins": "^4.0.16",
    "@expo/react-native-action-sheet": "^3.12.0",
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/datetimepicker": "3.5.2",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "6.0.2",
    "@react-native-community/slider": "4.1.12",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/material-bottom-tabs": "^5.3.15",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@sentry/react-native": "^3.2.13",
    "@stripe/stripe-react-native": "0.2.2",
    "@types/geojson": "^7946.0.8",
    "@types/react-native-calendar-picker": "^7.0.1",
    "@types/react-native-snap-carousel": "^3.8.5",
    "@types/react-native-star-rating": "^1.1.2",
    "@types/styled-components-react-native": "^5.1.1",
    "axios": "^0.27.2",
    "date-fns": "^2.22.1",
    "date-fns-tz": "^1.1.4",
    "expo": "^43.0.0",
    "expo-analytics-segment": "~11.0.3",
    "expo-application": "~4.0.0",
    "expo-av": "~10.1.3",
    "expo-blur": "~10.0.3",
    "expo-constants": "~12.1.3",
    "expo-crypto": "~10.0.3",
    "expo-device": "~4.0.3",
    "expo-facebook": "~12.0.3",
    "expo-file-system": "~13.0.3",
    "expo-firebase-analytics": "~5.0.3",
    "expo-firebase-recaptcha": "~2.0.2",
    "expo-google-app-auth": "~9.0.0",
    "expo-image-picker": "~11.0.3",
    "expo-linear-gradient": "~10.0.3",
    "expo-linking": "~2.4.2",
    "expo-localization": "~11.0.0",
    "expo-location": "~13.0.4",
    "expo-secure-store": "~11.0.3",
    "expo-status-bar": "~1.1.0",
    "expo-store-review": "~5.0.3",
    "expo-system-ui": "~1.0.0",
    "expo-tracking-transparency": "~2.0.3",
    "expo-updates": "~0.10.15",
    "firebase": "8.2.3",
    "geojson": "^0.5.0",
    "geolib": "^3.3.1",
    "lodash": "^4.17.21",
    "moment": "^2.29.1",
    "onesignal-expo-plugin": "^1.0.2",
    "patch-package": "^6.4.7",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-hook-form": "^7.14.2",
    "react-native": "0.64.3",
    "react-native-animatable": "^1.3.3",
    "react-native-branch": "5.0.0",
    "react-native-calendar-picker": "^7.1.2",
    "react-native-calendars": "^1.1285.0",
    "react-native-chart-kit": "^6.11.0",
    "react-native-flags-typescript": "^1.0.1",
    "react-native-flash-message": "^0.2.0",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-gifted-chat": "^0.16.3",
    "react-native-google-places-autocomplete": "^2.4.0",
    "react-native-maps": "0.28.1",
    "react-native-modal": "12.1.0",
    "react-native-onesignal": "4.3.11",
    "react-native-open-maps": "^0.4.0",
    "react-native-pager-view": "5.4.6",
    "react-native-paper": "^4.8.1",
    "react-native-reanimated": "~2.2.0",
    "react-native-root-toast": "^3.2.1",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.8.0",
    "react-native-skeleton-content": "^1.0.24",
    "react-native-slider": "^0.11.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-star-rating": "^1.1.0",
    "react-native-svg": "12.1.1",
    "react-native-tab-view": "^3.1.1",
    "react-native-web": "0.17.1",
    "react-native-webview": "11.13.0",
    "sentry-expo": "^4.0.0",
    "styled-components": "^5.3.0",
    "uuid": "3.4.0",
    "victory-native": "^35.3.3"
  }
jennantilla commented 1 year ago

Hi @ronal2s

Thanks for your patience--are you still having issues?

You may have conflicting versions of Firebase in your project. Can you double check your dependencies and see which version of Firebase they are using?

jennantilla commented 1 year ago

Closing due to no response. Please feel free to comment if still having issues!

sixtusiwuchukwu commented 1 year ago

@jennantilla I have been facing the same issue for days, were you able to fix yours @ronal2s ??

ximxim commented 11 months ago

@sixtusiwuchukwu I ran into the same issue. I resolved it by adding Kotlin version to my android/build.gradle file, like this:

    ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33

        // ADD THIS LINE
        kotlinVersion = "1.6.0"
    }