stripe / stripe-react-native

React Native library for Stripe.
https://stripe.dev/stripe-react-native
MIT License
1.27k stars 264 forks source link

stripe react native in Expo 47 eas build error #1255

Closed paulsizer closed 1 year ago

paulsizer commented 1 year ago

When using stripe react native in Expo 47 project and running was build I get the following error during the build process. When I run eas build for the Android platform the build fails due to Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0..

Environment

npx expo-env-info

Managed or bare?

Managed

expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 12.6
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.14.1 - /usr/local/bin/node
      Yarn: 1.22.17 - /usr/local/bin/yarn
      npm: 7.24.2 - ~/Apps/my-app/node_modules/.bin/npm
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    IDEs:
      Android Studio: 2021.3 AI-213.7172.25.2113.9123335
      Xcode: 14.2/14C18 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~47.0.9 => 47.0.10 
      react: 18.1.0 => 18.1.0 
      react-dom: 18.1.0 => 18.1.0 
      react-native: 0.70.5 => 0.70.5 
      react-native-web: ~0.18.7 => 0.18.10 
    npmGlobalPackages:
      eas-cli: 3.1.1
      expo-cli: 6.0.8
    Expo Workflow: managed

Error

 FAILURE: Build completed with 2 failures. 1718 [stderr] 1: Task failed with an exception. 1719 [stderr] ----------- 1720 [stderr] * What went wrong: 1721 [stderr] Execution failed for task ':app:checkReleaseAarMetadata'. 1722 [stderr] > 1723 [stderr] A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction 1724 [stderr] > 26 issues were found when checking AAR metadata: 1725 [stderr] 1726 [stderr] 1. Dependency 'androidx.appcompat:appcompat:1.5.1' requires libraries and applications that 1727 [stderr] depend on it to compile against version 32 or later of the 1728 [stderr] Android APIs. 1729 [stderr] 1730 [stderr] :app is currently compiled against android-31. 1731 [stderr] 1732 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 1733 [stderr] of at least 32, for example 32. 1734 [stderr] 1735 [stderr] Note that updating a library or application's compileSdkVersion (which 1736 [stderr] allows newer APIs to be used) can be done separately from updating 1737 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1738 [stderr] minSdkVersion (which determines which devices the app can be installed 1739 [stderr] on). 1740 [stderr] 1741 [stderr] 2. Dependency 'androidx.appcompat:appcompat-resources:1.5.1' requires libraries and applications that 1742 [stderr] depend on it to compile against version 32 or later of the 1743 [stderr] Android APIs. 1744 [stderr] 1745 [stderr] :app is currently compiled against android-31. 1746 [stderr] 1747 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 1748 [stderr] of at least 32, for example 32. 1749 [stderr] 1750 [stderr] Note that updating a library or application's compileSdkVersion (which 1751 [stderr] allows newer APIs to be used) can be done separately from updating 1752 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1753 [stderr] minSdkVersion (which determines which devices the app can be installed 1754 [stderr] on). 1755 [stderr] 1756 [stderr] 3. Dependency 'androidx.compose.material:material:1.3.0-beta02' requires libraries and applications that 1757 [stderr] depend on it to compile against version 33 or later of the 1758 [stderr] Android APIs. 1759 [stderr] 1760 [stderr] :app is currently compiled against android-31. 1761 [stderr] 1762 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1763 [stderr] plugin 7.2.1 is 32. 1764 [stderr] 1765 [stderr] Recommended action: Update this project's version of the Android Gradle 1766 [stderr] plugin to one that supports 33, then update this project to use 1767 [stderr] compileSdkVerion of at least 33. 1768 [stderr] 1769 [stderr] Note that updating a library or application's compileSdkVersion (which 1770 [stderr] allows newer APIs to be used) can be done separately from updating 1771 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1772 [stderr] minSdkVersion (which determines which devices the app can be installed 1773 [stderr] on). 1774 [stderr] 1775 [stderr] 4. Dependency 'androidx.compose.material:material-ripple:1.3.0-beta02' requires libraries and applications that 1776 [stderr] depend on it to compile against version 33 or later of the 1777 [stderr] Android APIs. 1778 [stderr] 1779 [stderr] :app is currently compiled against android-31. 1780 [stderr] 1781 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1782 [stderr] plugin 7.2.1 is 32. 1783 [stderr] 1784 [stderr] Recommended action: Update this project's version of the Android Gradle 1785 [stderr] plugin to one that supports 33, then update this project to use 1786 [stderr] compileSdkVerion of at least 33. 1787 [stderr] 1788 [stderr] Note that updating a library or application's compileSdkVersion (which 1789 [stderr] allows newer APIs to be used) can be done separately from updating 1790 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1791 [stderr] minSdkVersion (which determines which devices the app can be installed 1792 [stderr] on). 1793 [stderr] 1794 [stderr] 5. Dependency 'androidx.compose.foundation:foundation:1.3.0-beta02' requires libraries and applications that 1795 [stderr] depend on it to compile against version 33 or later of the 1796 [stderr] Android APIs. 1797 [stderr] 1798 [stderr] :app is currently compiled against android-31. 1799 [stderr] 1800 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1801 [stderr] plugin 7.2.1 is 32. 1802 [stderr] 1803 [stderr] Recommended action: Update this project's version of the Android Gradle 1804 [stderr] plugin to one that supports 33, then update this project to use 1805 [stderr] compileSdkVerion of at least 33. 1806 [stderr] 1807 [stderr] Note that updating a library or application's compileSdkVersion (which 1808 [stderr] allows newer APIs to be used) can be done separately from updating 1809 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1810 [stderr] minSdkVersion (which determines which devices the app can be installed 1811 [stderr] on). 1812 [stderr] 1813 [stderr] 6. Dependency 'androidx.compose.material:material-icons-core:1.3.0-beta02' requires libraries and applications that 1814 [stderr] depend on it to compile against version 33 or later of the 1815 [stderr] Android APIs. 1816 [stderr] 1817 [stderr] :app is currently compiled against android-31. 1818 [stderr] 1819 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1820 [stderr] plugin 7.2.1 is 32. 1821 [stderr] 1822 [stderr] Recommended action: Update this project's version of the Android Gradle 1823 [stderr] plugin to one that supports 33, then update this project to use 1824 [stderr] compileSdkVerion of at least 33. 1825 [stderr] 1826 [stderr] Note that updating a library or application's compileSdkVersion (which 1827 [stderr] allows newer APIs to be used) can be done separately from updating 1828 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1829 [stderr] minSdkVersion (which determines which devices the app can be installed 1830 [stderr] on). 1831 [stderr] 1832 [stderr] 7. Dependency 'androidx.compose.runtime:runtime-livedata:1.3.0-beta02' requires libraries and applications that 1833 [stderr] depend on it to compile against version 33 or later of the 1834 [stderr] Android APIs. 1835 [stderr] 1836 [stderr] :app is currently compiled against android-31. 1837 [stderr] 1838 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1839 [stderr] plugin 7.2.1 is 32. 1840 [stderr] 1841 [stderr] Recommended action: Update this project's version of the Android Gradle 1842 [stderr] plugin to one that supports 33, then update this project to use 1843 [stderr] compileSdkVerion of at least 33. 1844 [stderr] 1845 [stderr] Note that updating a library or application's compileSdkVersion (which 1846 [stderr] allows newer APIs to be used) can be done separately from updating 1847 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1848 [stderr] minSdkVersion (which determines which devices the app can be installed 1849 [stderr] on). 1850 [stderr] 1851 [stderr] 8. Dependency 'androidx.compose.animation:animation:1.2.1' requires libraries and applications that 1852 [stderr] depend on it to compile against version 32 or later of the 1853 [stderr] Android APIs. 1854 [stderr] 1855 [stderr] :app is currently compiled against android-31. 1856 [stderr] 1857 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 1858 [stderr] of at least 32, for example 32. 1859 [stderr] 1860 [stderr] Note that updating a library or application's compileSdkVersion (which 1861 [stderr] allows newer APIs to be used) can be done separately from updating 1862 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1863 [stderr] minSdkVersion (which determines which devices the app can be installed 1864 [stderr] on). 1865 [stderr] 1866 [stderr] 9. Dependency 'androidx.compose.foundation:foundation-layout:1.3.0-beta02' requires libraries and applications that 1867 [stderr] depend on it to compile against version 33 or later of the 1868 [stderr] Android APIs. 1869 [stderr] 1870 [stderr] :app is currently compiled against android-31. 1871 [stderr] 1872 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1873 [stderr] plugin 7.2.1 is 32. 1874 [stderr] 1875 [stderr] Recommended action: Update this project's version of the Android Gradle 1876 [stderr] plugin to one that supports 33, then update this project to use 1877 [stderr] compileSdkVerion of at least 33. 1878 [stderr] 1879 [stderr] Note that updating a library or application's compileSdkVersion (which 1880 [stderr] allows newer APIs to be used) can be done separately from updating 1881 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1882 [stderr] minSdkVersion (which determines which devices the app can be installed 1883 [stderr] on). 1884 [stderr] 1885 [stderr] 10. Dependency 'androidx.compose.animation:animation-core:1.2.1' requires libraries and applications that 1886 [stderr] depend on it to compile against version 32 or later of the 1887 [stderr] Android APIs. 1888 [stderr] 1889 [stderr] :app is currently compiled against android-31. 1890 [stderr] 1891 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 1892 [stderr] of at least 32, for example 32. 1893 [stderr] 1894 [stderr] Note that updating a library or application's compileSdkVersion (which 1895 [stderr] allows newer APIs to be used) can be done separately from updating 1896 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1897 [stderr] minSdkVersion (which determines which devices the app can be installed 1898 [stderr] on). 1899 [stderr] 1900 [stderr] 11. Dependency 'androidx.compose.ui:ui:1.3.0-beta02' requires libraries and applications that 1901 [stderr] depend on it to compile against version 33 or later of the 1902 [stderr] Android APIs. 1903 [stderr] 1904 [stderr] :app is currently compiled against android-31. 1905 [stderr] 1906 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1907 [stderr] plugin 7.2.1 is 32. 1908 [stderr] 1909 [stderr] Recommended action: Update this project's version of the Android Gradle 1910 [stderr] plugin to one that supports 33, then update this project to use 1911 [stderr] compileSdkVerion of at least 33. 1912 [stderr] 1913 [stderr] Note that updating a library or application's compileSdkVersion (which 1914 [stderr] allows newer APIs to be used) can be done separately from updating 1915 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1916 [stderr] minSdkVersion (which determines which devices the app can be installed 1917 [stderr] on). 1918 [stderr] 1919 [stderr] 12. Dependency 'androidx.compose.ui:ui-text:1.3.0-beta02' requires libraries and applications that 1920 [stderr] depend on it to compile against version 33 or later of the 1921 [stderr] Android APIs. 1922 [stderr] 1923 [stderr] :app is currently compiled against android-31. 1924 [stderr] 1925 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1926 [stderr] plugin 7.2.1 is 32. 1927 [stderr] 1928 [stderr] Recommended action: Update this project's version of the Android Gradle 1929 [stderr] plugin to one that supports 33, then update this project to use 1930 [stderr] compileSdkVerion of at least 33. 1931 [stderr] 1932 [stderr] Note that updating a library or application's compileSdkVersion (which 1933 [stderr] allows newer APIs to be used) can be done separately from updating 1934 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1935 [stderr] minSdkVersion (which determines which devices the app can be installed 1936 [stderr] on). 1937 [stderr] 1938 [stderr] 13. Dependency 'androidx.compose.runtime:runtime-saveable:1.3.0-beta02' requires libraries and applications that 1939 [stderr] depend on it to compile against version 33 or later of the 1940 [stderr] Android APIs. 1941 [stderr] 1942 [stderr] :app is currently compiled against android-31. 1943 [stderr] 1944 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1945 [stderr] plugin 7.2.1 is 32. 1946 [stderr] 1947 [stderr] Recommended action: Update this project's version of the Android Gradle 1948 [stderr] plugin to one that supports 33, then update this project to use 1949 [stderr] compileSdkVerion of at least 33. 1950 [stderr] 1951 [stderr] Note that updating a library or application's compileSdkVersion (which 1952 [stderr] allows newer APIs to be used) can be done separately from updating 1953 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1954 [stderr] minSdkVersion (which determines which devices the app can be installed 1955 [stderr] on). 1956 [stderr] 1957 [stderr] 14. Dependency 'androidx.compose.ui:ui-graphics:1.3.0-beta02' requires libraries and applications that 1958 [stderr] depend on it to compile against version 33 or later of the 1959 [stderr] Android APIs. 1960 [stderr] 1961 [stderr] :app is currently compiled against android-31. 1962 [stderr] 1963 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1964 [stderr] plugin 7.2.1 is 32. 1965 [stderr] 1966 [stderr] Recommended action: Update this project's version of the Android Gradle 1967 [stderr] plugin to one that supports 33, then update this project to use 1968 [stderr] compileSdkVerion of at least 33. 1969 [stderr] 1970 [stderr] Note that updating a library or application's compileSdkVersion (which 1971 [stderr] allows newer APIs to be used) can be done separately from updating 1972 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1973 [stderr] minSdkVersion (which determines which devices the app can be installed 1974 [stderr] on). 1975 [stderr] 1976 [stderr] 15. Dependency 'androidx.compose.ui:ui-unit:1.3.0-beta02' requires libraries and applications that 1977 [stderr] depend on it to compile against version 33 or later of the 1978 [stderr] Android APIs. 1979 [stderr] :app is currently compiled against android-31. 1980 [stderr] 1981 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 1982 [stderr] plugin 7.2.1 is 32. 1983 [stderr] 1984 [stderr] Recommended action: Update this project's version of the Android Gradle 1985 [stderr] plugin to one that supports 33, then update this project to use 1986 [stderr] compileSdkVerion of at least 33. 1987 [stderr] 1988 [stderr] Note that updating a library or application's compileSdkVersion (which 1989 [stderr] allows newer APIs to be used) can be done separately from updating 1990 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 1991 [stderr] minSdkVersion (which determines which devices the app can be installed 1992 [stderr] on). 1993 [stderr] 1994 [stderr] 16. Dependency 'androidx.compose.ui:ui-geometry:1.3.0-beta02' requires libraries and applications that 1995 [stderr] depend on it to compile against version 33 or later of the 1996 [stderr] Android APIs. 1997 [stderr] 1998 [stderr] :app is currently compiled against android-31. 1999 [stderr] 2000 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2001 [stderr] plugin 7.2.1 is 32. 2002 [stderr] 2003 [stderr] Recommended action: Update this project's version of the Android Gradle 2004 [stderr] plugin to one that supports 33, then update this project to use 2005 [stderr] compileSdkVerion of at least 33. 2006 [stderr] 2007 [stderr] Note that updating a library or application's compileSdkVersion (which 2008 [stderr] allows newer APIs to be used) can be done separately from updating 2009 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2010 [stderr] minSdkVersion (which determines which devices the app can be installed 2011 [stderr] on). 2012 [stderr] 2013 [stderr] 17. Dependency 'androidx.compose.ui:ui-tooling-preview:1.3.0-beta02' requires libraries and applications that 2014 [stderr] depend on it to compile against version 33 or later of the 2015 [stderr] Android APIs. 2016 [stderr] 2017 [stderr] :app is currently compiled against android-31. 2018 [stderr] 2019 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2020 [stderr] plugin 7.2.1 is 32. 2021 [stderr] 2022 [stderr] Recommended action: Update this project's version of the Android Gradle 2023 [stderr] plugin to one that supports 33, then update this project to use 2024 [stderr] compileSdkVerion of at least 33. 2025 [stderr] 2026 [stderr] Note that updating a library or application's compileSdkVersion (which 2027 [stderr] allows newer APIs to be used) can be done separately from updating 2028 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2029 [stderr] minSdkVersion (which determines which devices the app can be installed 2030 [stderr] on). 2031 [stderr] 2032 [stderr] 18. Dependency 'androidx.compose.runtime:runtime:1.3.0-beta02' requires libraries and applications that 2033 [stderr] depend on it to compile against version 33 or later of the 2034 [stderr] Android APIs. 2035 [stderr] 2036 [stderr] :app is currently compiled against android-31. 2037 [stderr] 2038 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2039 [stderr] plugin 7.2.1 is 32. 2040 [stderr] 2041 [stderr] Recommended action: Update this project's version of the Android Gradle 2042 [stderr] plugin to one that supports 33, then update this project to use 2043 [stderr] compileSdkVerion of at least 33. 2044 [stderr] 2045 [stderr] Note that updating a library or application's compileSdkVersion (which 2046 [stderr] allows newer APIs to be used) can be done separately from updating 2047 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2048 [stderr] minSdkVersion (which determines which devices the app can be installed 2049 [stderr] on). 2050 [stderr] 2051 [stderr] 19. Dependency 'androidx.emoji2:emoji2-views-helper:1.2.0' requires libraries and applications that 2052 [stderr] depend on it to compile against version 32 or later of the 2053 [stderr] Android APIs. 2054 [stderr] 2055 [stderr] :app is currently compiled against android-31. 2056 [stderr] 2057 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 2058 [stderr] of at least 32, for example 32. 2059 [stderr] 2060 [stderr] Note that updating a library or application's compileSdkVersion (which 2061 [stderr] allows newer APIs to be used) can be done separately from updating 2062 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2063 [stderr] minSdkVersion (which determines which devices the app can be installed 2064 [stderr] on). 2065 [stderr] 2066 [stderr] 20. Dependency 'androidx.emoji2:emoji2:1.2.0' requires libraries and applications that 2067 [stderr] depend on it to compile against version 32 or later of the 2068 [stderr] Android APIs. 2069 [stderr] 2070 [stderr] :app is currently compiled against android-31. 2071 [stderr] 2072 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 2073 [stderr] of at least 32, for example 32. 2074 [stderr] 2075 [stderr] Note that updating a library or application's compileSdkVersion (which 2076 [stderr] allows newer APIs to be used) can be done separately from updating 2077 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2078 [stderr] minSdkVersion (which determines which devices the app can be installed 2079 [stderr] on). 2080 [stderr] 2081 [stderr] 21. Dependency 'androidx.customview:customview-poolingcontainer:1.0.0' requires libraries and applications that 2082 [stderr] depend on it to compile against version 32 or later of the 2083 [stderr] Android APIs. 2084 [stderr] 2085 [stderr] :app is currently compiled against android-31. 2086 [stderr] 2087 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 2088 [stderr] of at least 32, for example 32. 2089 [stderr] 2090 [stderr] Note that updating a library or application's compileSdkVersion (which 2091 [stderr] allows newer APIs to be used) can be done separately from updating 2092 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2093 [stderr] minSdkVersion (which determines which devices the app can be installed 2094 [stderr] on). 2095 [stderr] 2096 [stderr] 22. Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that 2097 [stderr] depend on it to compile against version 33 or later of the 2098 [stderr] Android APIs. 2099 [stderr] 2100 [stderr] :app is currently compiled against android-31. 2101 [stderr] 2102 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2103 [stderr] plugin 7.2.1 is 32. 2104 [stderr] 2105 [stderr] Recommended action: Update this project's version of the Android Gradle 2106 [stderr] plugin to one that supports 33, then update this project to use 2107 [stderr] compileSdkVerion of at least 33. 2108 [stderr] 2109 [stderr] Note that updating a library or application's compileSdkVersion (which 2110 [stderr] allows newer APIs to be used) can be done separately from updating 2111 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2112 [stderr] minSdkVersion (which determines which devices the app can be installed 2113 [stderr] on). 2114 [stderr] 2115 [stderr] 23. Dependency 'androidx.core:core:1.9.0' requires libraries and applications that 2116 [stderr] depend on it to compile against version 33 or later of the 2117 [stderr] Android APIs. 2118 [stderr] 2119 [stderr] :app is currently compiled against android-31. 2120 [stderr] 2121 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2122 [stderr] plugin 7.2.1 is 32. 2123 [stderr] 2124 [stderr] Recommended action: Update this project's version of the Android Gradle 2125 [stderr] plugin to one that supports 33, then update this project to use 2126 [stderr] compileSdkVerion of at least 33. 2127 [stderr] 2128 [stderr] Note that updating a library or application's compileSdkVersion (which 2129 [stderr] allows newer APIs to be used) can be done separately from updating 2130 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2131 [stderr] minSdkVersion (which determines which devices the app can be installed 2132 [stderr] on). 2133 [stderr] 2134 [stderr] 24. Dependency 'androidx.profileinstaller:profileinstaller:1.2.0' requires libraries and applications that 2135 [stderr] depend on it to compile against version 32 or later of the 2136 [stderr] Android APIs. 2137 [stderr] 2138 [stderr] :app is currently compiled against android-31. 2139 [stderr] 2140 [stderr] Recommended action: Update this project to use a newer compileSdkVersion 2141 [stderr] of at least 32, for example 32. 2142 [stderr] 2143 [stderr] Note that updating a library or application's compileSdkVersion (which 2144 [stderr] allows newer APIs to be used) can be done separately from updating 2145 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2146 [stderr] minSdkVersion (which determines which devices the app can be installed 2147 [stderr] on). 2148 [stderr] 2149 [stderr] 25. Dependency 'androidx.compose.ui:ui-util:1.3.0-beta02' requires libraries and applications that 2150 [stderr] depend on it to compile against version 33 or later of the 2151 [stderr] Android APIs. 2152 [stderr] 2153 [stderr] :app is currently compiled against android-31. 2154 [stderr] 2155 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2156 [stderr] plugin 7.2.1 is 32. 2157 [stderr] 2158 [stderr] Recommended action: Update this project's version of the Android Gradle 2159 [stderr] plugin to one that supports 33, then update this project to use 2160 [stderr] compileSdkVerion of at least 33. 2161 [stderr] 2162 [stderr] Note that updating a library or application's compileSdkVersion (which 2163 [stderr] allows newer APIs to be used) can be done separately from updating 2164 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2165 [stderr] minSdkVersion (which determines which devices the app can be installed 2166 [stderr] on). 2167 [stderr] 2168 [stderr] 26. Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that 2169 [stderr] depend on it to compile against version 33 or later of the 2170 [stderr] Android APIs. 2171 [stderr] 2172 [stderr] :app is currently compiled against android-31. 2173 [stderr] 2174 [stderr] Also, the maximum recommended compile SDK version for Android Gradle 2175 [stderr] plugin 7.2.1 is 32. 2176 [stderr] 2177 [stderr] Recommended action: Update this project's version of the Android Gradle 2178 [stderr] plugin to one that supports 33, then update this project to use 2179 [stderr] compileSdkVerion of at least 33. 2180 [stderr] 2181 [stderr] Note that updating a library or application's compileSdkVersion (which 2182 [stderr] allows newer APIs to be used) can be done separately from updating 2183 [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and 2184 [stderr] minSdkVersion (which determines which devices the app can be installed 2185 [stderr] on). 2186 [stderr] * Try: 2187 [stderr] > Run with --stacktrace option to get the stack trace. 2188 [stderr] > Run with --info or --debug option to get more log output. 2189 [stderr] > Run with --scan to get full insights. 2190 [stderr] ============================================================================== 2191 [stderr] 2: Task failed with an exception. 2192 [stderr] ----------- 2193 [stderr] * What went wrong: 2194 [stderr] java.lang.StackOverflowError (no error message) 2195 [stderr] * Try: 2196 [stderr] > Run with --stacktrace option to get the stack trace. 2197 [stderr] > Run with --info or --debug option to get more log output. 2198 [stderr] > Run with --scan to get full insights. 2199 [stderr] ============================================================================== 2200 [stderr] * Get more help at https://help.gradle.org 2201 [stderr] BUILD FAILED in 7m 56s 2202 Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. 2203 You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. 2204 See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 2205 Execution optimizations have been disabled for 7 invalid unit(s) of work during this build to ensure correctness. 2206 Please consult deprecation warnings for more details. 2207 697 actionable tasks: 697 executed 2208 Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information. 
paulsizer commented 1 year ago

Creating a brand new expo app and only adding stripe fails to build using eas build on android

{ "name": "my-app", "version": "1.0.0", "scripts": { "start": "expo start --dev-client", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web" }, "dependencies": { "expo": "~47.0.9", "expo-status-bar": "~1.4.2", "react": "18.1.0", "react-native": "0.70.5", "@stripe/stripe-react-native": "0.19.0", "expo-splash-screen": "~0.17.5" }, "devDependencies": { "@babel/core": "^7.12.9" }, "private": true }

charliecruzan-stripe commented 1 year ago

Looks from the error message like you need to upgrade your compileSdkVersion. As of 0.19.0, compileSdkVersion must be set to 33 -> https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#0190---2022-09-16--expo-sdk-47