When building the last 4.0.0 release with "react-native": 0.70.5 we're getting this conflict about androidx.appcompat:appcompat:1.1.0.
`
Could not determine the dependencies of task ':app:mergeReleaseNativeLibs'.
Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
Could not resolve androidx.appcompat:appcompat:1.1.0.
Required by:
project :app
project :app > project :react-native-screens
project :app > project :react-native-screens > com.google.android.material:material:1.6.1
> Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints:
Dependency path 'app:app:unspecified' --> 'androidx.appcompat:appcompat:1.1.0'
Dependency path 'app:app:unspecified' --> 'com.facebook.react:react-native:0.70.5' (releaseVariantDefaultRuntimePublication) --> 'androidx.appcompat:appcompat:1.4.1'
Dependency path 'app:app:unspecified' --> 'app:intercom_intercom-react-native:unspecified' (releaseRuntimeElements) --> 'androidx.appcompat:appcompat:{strictly 1.3.1}'
Dependency path 'app:app:unspecified' --> 'app:react-native-gesture-handler:unspecified' (releaseRuntimeElements) --> 'androidx.appcompat:appcompat:1.2.0'
Dependency path 'app:app:unspecified' --> 'app:react-native-screens:unspecified' (releaseRuntimeElements) --> 'androidx.appcompat:appcompat:1.1.0'
Dependency path 'app:app:unspecified' --> 'host.exp.exponent:expo:47.0.3' (releaseRuntimeElements) --> 'host.exp.exponent:expo-modules-core:1.0.2' (releaseRuntimeElements) --> 'androidx.appcompat:appcompat:1.4.1'
Dependency path 'app:app:unspecified' --> 'app:lottie-react-native:unspecified' (releaseRuntimeElements) --> 'com.airbnb.android:lottie:5.1.1' (releaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.3.1'
Dependency path 'app:app:unspecified' --> 'app:intercom_intercom-react-native:unspecified' (releaseRuntimeElements) --> 'io.intercom.android:intercom-sdk:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'io.intercom.android:intercom-sdk-base:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.4.2'
Dependency path 'app:app:unspecified' --> 'app:react-native-firebase_perf:unspecified' (releaseRuntimeElements) --> 'com.google.firebase:firebase-perf:20.2.0' (runtime) --> 'androidx.appcompat:appcompat:1.2.0'
Dependency path 'app:app:unspecified' --> 'app:react-native-sensitive-info:unspecified' (releaseRuntimeElements) --> 'androidx.biometric:biometric:1.2.0-alpha04' (releaseVariantReleaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.2.0'
Dependency path 'app:app:unspecified' --> 'app:react-native-screens:unspecified' (releaseRuntimeElements) --> 'com.google.android.material:material:1.6.1' (releaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.1.0'
Dependency path 'app:app:unspecified' --> 'app:intercom_intercom-react-native:unspecified' (releaseRuntimeElements) --> 'io.intercom.android:intercom-sdk:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'io.intercom.android:intercom-sdk-base:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'androidx.constraintlayout:constraintlayout:2.1.4' (releaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.2.0'
Dependency path 'app:app:unspecified' --> 'app:intercom_intercom-react-native:unspecified' (releaseRuntimeElements) --> 'io.intercom.android:intercom-sdk:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'io.intercom.android:intercom-sdk-base:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'com.intercom:android-composer:3.3.3' (releaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.3.1'
Dependency path 'app:app:unspecified' --> 'app:intercom_intercom-react-native:unspecified' (releaseRuntimeElements) --> 'io.intercom.android:intercom-sdk:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'io.intercom.android:intercom-sdk-base:14.0.0' (releaseVariantReleaseRuntimePublication) --> 'com.intercom:android-composer-gallery:3.3.3' (releaseRuntimePublication) --> 'androidx.appcompat:appcompat:1.3.1'
Downgrading to the previous 3.0.5 version solves the issue, Note that IOS is working like a charm with no issues.
Thanks