invertase / react-native-apple-authentication

A React Native library providing support for Apple Authentication on iOS and Android.
Other
1.36k stars 215 forks source link

Release build error on Android #311

Closed supershik closed 1 year ago

supershik commented 1 year ago

it is building fine without any issues in debug mode. the error appears only when trying to build with product mode

Task :invertase_react-native-apple-authentication:generateReleaseRFile FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

This is the build.gradle info

buildscript { ext { buildToolsVersion = "31.0.0" minSdkVersion = 21 compileSdkVersion = 31 targetSdkVersion = 31 googlePlayServicesAuthVersion = "19.2.0" //20.3.0" if (System.properties['os.arch'] == "aarch64") { // For M1 Users we need to use the NDK 24 which added support for aarch64 ndkVersion = "24.0.8215888" } else { // Otherwise we default to the side-by-side NDK version from AGP. ndkVersion = "21.4.7075529" } } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:7.2.1") classpath("com.facebook.react:react-native-gradle-plugin") classpath("de.undercouch:gradle-download-task:5.0.1") classpath 'com.google.gms:google-services:4.3.13' } }

============================================================================== React Native Version "react": "18.1.0", "react-native": "0.70.3"

==============================================================================

Any solution, Team?

Thanks

mikehardy commented 1 year ago

Yep, you are affected by this general react-native issue, it is not from this module: https://github.com/facebook/react-native/issues/35210

supershik commented 1 year ago

Thanks! @mikehardy