expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
775 stars 81 forks source link

EAS Build fails for Android on Expo 47 due to Deprecated Gradle features #1607

Closed paulsizer closed 1 year ago

paulsizer commented 1 year ago

Build/Submit details page URL

https://expo.dev/accounts/simplytrak/projects/my-app/builds/567fcb18-121b-48c3-a5e3-8815319fa9ba

Summary

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..

Managed or bare?

Managed

Environment

npx expo-env-info

  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

expo doctor

🎉 Didn't find any issues with the project!

Error output

issue with the run gradlew step during the build

``` 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. ```

Reproducible demo or steps to reproduce from a blank project

https://github.com/paulsizer/expo-android-eas-build

dsokal commented 1 year ago

Hi @paulsizer, Is https://github.com/paulsizer/expo-android-eas-build just a fresh Expo project? I don't think this one will fail. Does building it fails for you? Can you share the build id/URL for a expo-android-eas-build build?

paulsizer commented 1 year ago

hi @dsokal it is a fresh expo project with all the packages I am using from another app that I am having the issue with. This is just a project I created so that it can be reproduced.

Build Id is 567fcb18-121b-48c3-a5e3-8815319fa9ba

I appreciate you looking into this.

dsokal commented 1 year ago

Correct me if I'm wrong but https://github.com/paulsizer/expo-android-eas-build/blob/main/package.json doesn't have any custom dependencies installed. 567fcb18-121b-48c3-a5e3-8815319fa9ba is not for that project.

Sorry to say but I'm 99.9% sure this is something project specific.

Also, please note that EAS Build cannot build a project that you cannot build locally - expo prebuild + building with Android Studio.

paulsizer commented 1 year ago

@dsokal apologies I forgot to commit the latest version of package.json, that should be done now.

https://github.com/paulsizer/expo-android-eas-build/blob/main/package.json

https://expo.dev/accounts/simplytrak/projects/my-app/builds/567fcb18-121b-48c3-a5e3-8815319fa9ba should be the right build output for that repo.

bogadrian commented 1 year ago

I have exactly this same issue, did you find a solution to it? using expo-build-proprieties is not working for me in android, it worked for IOS: [ 'expo-build-properties', { android: { compileSdkVersion: 33, targetSdkVersion: 33, buildToolsVersion: '33.0.0', kotlinVersion: '1.8.0', }, ios: { deploymentTarget: '13.0', }, }, ],

dsokal commented 1 year ago

@bogadrian What do you mean by "exactly the same issue"? Can you share the build id/url?

bogadrian commented 1 year ago

sure: id build: 32b3f8c0-ea9c-4835-8dcc-228e5f9eb2b6

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions [stderr] FAILURE: Build completed with 2 failures. [stderr] 1: Task failed with an exception. [stderr] ----------- [stderr] * What went wrong: [stderr] Execution failed for task ':app:checkDebugAarMetadata'. [stderr] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction [stderr] > 31 issues were found when checking AAR metadata: [stderr] [stderr] 1. Dependency 'androidx.appcompat:appcompat-resources:1.5.1' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 2. Dependency 'androidx.appcompat:appcompat:1.5.1' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 3. Dependency 'androidx.compose.ui:ui-tooling:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 4. Dependency 'androidx.compose.material:material:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 5. Dependency 'androidx.compose.material:material-ripple:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 6. Dependency 'androidx.compose.foundation:foundation:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 7. Dependency 'androidx.activity:activity-compose:1.6.1' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 8. Dependency 'androidx.compose.animation:animation:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 9. Dependency 'androidx.compose.ui:ui-tooling-data:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 10. Dependency 'androidx.compose.foundation:foundation-layout:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 11. Dependency 'androidx.compose.material:material-icons-core:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 12. Dependency 'androidx.compose.animation:animation-core:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 13. Dependency 'androidx.compose.ui:ui:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 14. Dependency 'androidx.activity:activity:1.6.1' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 15. Dependency 'androidx.activity:activity-ktx:1.6.1' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 16. Dependency 'androidx.compose.ui:ui-text:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 17. Dependency 'androidx.compose.runtime:runtime-saveable:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 18. Dependency 'androidx.compose.ui:ui-graphics:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 19. Dependency 'androidx.compose.ui:ui-unit:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 20. Dependency 'androidx.compose.ui:ui-geometry:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 21. Dependency 'androidx.compose.ui:ui-tooling-preview:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 22. Dependency 'androidx.compose.runtime:runtime:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 23. Dependency 'androidx.emoji2:emoji2-views-helper:1.2.0' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 24. Dependency 'androidx.emoji2:emoji2:1.2.0' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 25. Dependency 'androidx.webkit:webkit:1.5.0' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 26. Dependency 'androidx.customview:customview-poolingcontainer:1.0.0' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 27. Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 28. Dependency 'androidx.core:core:1.9.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 29. Dependency 'androidx.profileinstaller:profileinstaller:1.2.0' requires libraries and applications that [stderr] depend on it to compile against version 32 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Recommended action: Update this project to use a newer compileSdkVersion [stderr] of at least 32, for example 32. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 30. Dependency 'androidx.compose.ui:ui-util:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] [stderr] 31. Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that [stderr] depend on it to compile against version 33 or later of the [stderr] Android APIs. [stderr] [stderr] :app is currently compiled against android-31. [stderr] [stderr] Also, the maximum recommended compile SDK version for Android Gradle [stderr] plugin 7.2.1 is 32. [stderr] [stderr] Recommended action: Update this project's version of the Android Gradle [stderr] plugin to one that supports 33, then update this project to use [stderr] compileSdkVerion of at least 33. [stderr] [stderr] Note that updating a library or application's compileSdkVersion (which [stderr] allows newer APIs to be used) can be done separately from updating [stderr] targetSdkVersion (which opts the app in to new runtime behavior) and [stderr] minSdkVersion (which determines which devices the app can be installed [stderr] on). [stderr] * Try: [stderr] > Run with --stacktrace option to get the stack trace. [stderr] > Run with --info or --debug option to get more log output. [stderr] > Run with --scan to get full insights. [stderr] ============================================================================== [stderr] 2: Task failed with an exception. [stderr] ----------- [stderr] * What went wrong: [stderr] java.lang.StackOverflowError (no error message) [stderr] * Try: [stderr] > Run with --stacktrace option to get the stack trace. [stderr] > Run with --info or --debug option to get more log output. [stderr] > Run with --scan to get full insights. [stderr] ============================================================================== [stderr] * Get more help at https://help.gradle.org [stderr] BUILD FAILED in 6m 36s 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.5.1/userguide/command_line_interface.html#sec:command_line_warnings Execution optimizations have been disabled for 4 invalid unit(s) of work during this build to ensure correctness. Please consult deprecation warnings for more details. 748 actionable tasks: 748 executed Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
paulsizer commented 1 year ago

@dsokal did you see the latest package.json file?

bogadrian commented 1 year ago

here is all my package.json. I am quite sure at least one of all this packages are not compatible with Expo 47 but I can't understand which one and what version of it.

{ "name": "freelancer-mobile-app", "version": "1.0.11", "main": "node_modules/expo/AppEntry.js", "engines": { "node": "16.15.1" }, "scripts": { "android": "expo run:android", "eject": "expo eject", "ios": "expo run:ios", "lint": "tsc --noEmit && eslint --ext .ts,.tsx src --color", "lint:fix": "eslint --fix --ext .ts,.tsx src --color", "start": "expo start --dev-client", "start:clean": "expo -c --dev-client", "web": "expo start --web", "test": "jest", "e2e": "detox test --configuration ios", "check:i18n": "cd ./translationScript && npm i && npm run check:i18n", "postinstall": "patch-package", "start:debug": "REACT_DEBUGGER=\"rndebugger-open --open --expo\" expo start", "prepare": "husky install" }, "dependencies": { "@alessiocancian/react-native-actionsheet": "^3.2.0", "@arelstone/react-native-email-chip": "2.2.4", "@dinero.js/currencies": "2.0.0-alpha.8", "@expo-google-fonts/quicksand": "^0.2.0", "@expo-google-fonts/sen": "^0.2.0", "@expo/config": "^7.0.2", "@expo/config-plugins": "^5.0.2", "@expo/vector-icons": "^13.0.0", "@formatjs/intl-displaynames": "^6.0.1", "@formatjs/intl-getcanonicallocales": "^2.0.1", "@formatjs/intl-locale": "^3.0.1", "@gorhom/portal": "^1.0.12", "@intercom/intercom-react-native": "^4.0.1", "@react-native-async-storage/async-storage": "~1.17.3", "@react-native-community/netinfo": "9.3.5", "@react-native-masked-view/masked-view": "^0.2.8", "@react-native-picker/picker": "^2.4.8", "@react-navigation/bottom-tabs": "^6.2.0", "@react-navigation/elements": "^1.2.1", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11", "@reduxjs/toolkit": "^1.7.1", "@segment/analytics-react-native": "^2.9.1", "@segment/analytics-react-native-plugin-adjust": "^0.5.0", "@segment/sovran-react-native": "^0.4.5", "@sentry/react-native": "4.9.0", "@shopify/restyle": "1.6.1", "@types/dinero.js": "1.9.0", "@types/google.maps": "^3.48.1", "@types/lodash.debounce": "^4.0.6", "@types/lodash.truncate": "^4.4.7", "@types/lodash.uniqby": "^4.7.6", "@types/luxon": "^3.0.1", "axios": "^0.26.0", "axios-curlirize": "^1.3.7", "babel-plugin-inline-dotenv": "^1.6.0", "buffer": "^6.0.3", "config-plugin-react-native-intercom": "^1.4.3", "dinero.js": "2.0.0-alpha.8", "expo": "~47.0.9", "expo-apple-authentication": "~5.0.1", "expo-application": "~5.0.1", "expo-auth-session": "~3.8.0", "expo-blur": "~12.0.1", "expo-build-properties": "~0.4.1", "expo-clipboard": "~4.0.1", "expo-constants": "~14.0.2", "expo-dev-client": "~2.0.1", "expo-device": "~5.0.0", "expo-document-picker": "~11.0.1", "expo-file-system": "~15.1.1", "expo-font": "~11.0.1", "expo-linear-gradient": "~12.0.1", "expo-linking": "~3.3.0", "expo-localization": "~14.0.0", "expo-notifications": "~0.17.0", "expo-random": "~13.0.0", "expo-secure-store": "~12.0.0", "expo-sharing": "~11.0.1", "expo-splash-screen": "~0.17.5", "expo-status-bar": "~1.4.2", "expo-tracking-transparency": "~3.0.1", "expo-updates": "^0.15.6", "expo-updates-interface": "^0.8.1", "flagsmith": "^3.14.1", "formik": "^2.2.9", "google-libphonenumber": "^3.2.27", "i18n-js": "^3.8.0", "intl": "^1.2.5", "jest-expo": "^46.0.0", "jest-mock": "^29.0.2", "jsvat": "^2.5.3", "jwt-decode": "^3.1.2", "lodash.debounce": "^4.0.8", "lodash.groupby": "^4.6.0", "lodash.isequal": "^4.5.0", "lodash.truncate": "^4.4.2", "lodash.uniqby": "^4.7.0", "lottie-react-native": "^5.0.1", "luxon": "^3.0.3", "moment": "^2.29.1", "patch-package": "^6.4.7", "react": "18.1.0", "react-error-boundary": "^3.1.4", "react-native": "0.70.5", "react-native-adjust": "^4.32.1", "react-native-blob-util": "^0.16.2", "react-native-calendars": "^1.1275.0", "react-native-date-picker": "^4.2.2", "react-native-email-link": "^1.12.2", "react-native-fbsdk-next": "^11.1.0", "react-native-flip-card": "^3.5.6", "react-native-floating-action": "^1.22.0", "react-native-gesture-handler": "~2.8.0", "react-native-keyboard-accessory": "^0.1.16", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-mask-text": "^0.7.0", "react-native-modalize": "^2.0.13", "react-native-pdf": "^6.5.0", "react-native-reanimated": "2.13.0", "react-native-reanimated-carousel": "3.1.5", "react-native-safe-area-context": "4.4.1", "react-native-screens": "~3.18.0", "react-native-svg": "12.5.0", "react-native-toast-message": "^2.1.1", "react-native-webview": "11.23.1", "react-query": "^3.34.16", "sentry-expo": "5.0.3", "yup": "^0.32.11" }, "devDependencies": { "@babel/core": "^7.12.9", "@config-plugins/react-native-adjust": "^2.0.0", "@config-plugins/react-native-blob-util": "^2.0.0", "@config-plugins/react-native-pdf": "^2.0.0", "@testing-library/jest-native": "^5.3.2", "@testing-library/react-hooks": "^7.0.2", "@testing-library/react-native": "^11.5.0", "@types/axios-curlirize": "^1.3.2", "@types/detox": "^18.1.0", "@types/google-libphonenumber": "^7.4.23", "@types/i18n-js": "^3.8.2", "@types/jest": "^27.5.2", "@types/lodash.groupby": "^4.6.7", "@types/lodash.isequal": "^4.5.6", "@types/react": "~17.0.21", "@types/react-native": "~0.67.6", "@types/react-native-flip-card": "^3.5.2", "@typescript-eslint/eslint-plugin": "^5.10.2", "@typescript-eslint/parser": "^5.10.2", "babel-plugin-module-resolver": "^4.1.0", "detox": "^19.10.0", "eslint": "^8.8.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^12.3.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^24.3.6", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-unused-imports": "^2.0.0", "husky": "^8.0.1", "jest": "29.3.1", "jest-circus": "^27.5.1", "nock": "^13.2.4", "prettier": "^2.5.1", "react-test-renderer": "18.0.0", "slack-notify": "^2.0.2", "ts-jest": "^29.0.3", "ts-node": "^10.8.1", "typescript": "~4.3.5" }, "private": true, "resolutions": { "@expo/config-plugins": "~5.0.1", "@expo/prebuild-config": "~5.0.3", "expo-modules-autolinking": "0.10.3" } }

dsokal commented 1 year ago

Yes, but I don't have time to debug which dependency is causing the issue. Actually, you're asking me to debug your application for you. This is not a minimal reproducible example.

What I would do if I had this problem:

This way you can find which dependency is causing the problem. Most likely this won't be a problem with EAS Build.

Also, why do you think this is a problem with EAS Build?

bogadrian commented 1 year ago

got it. thank you. it runs ok on local, no errors, only when trying to build on EAS server it fails

paulsizer commented 1 year ago

@dsokal Ok I think I have narrowed down the dependency thats causing the issue but not sure why this would be the case...

It looks like it is stripe!

"@stripe/stripe-react-native": "0.19.0"

The only issue is I am using the expo install command to add it to my project?

npx expo install @stripe/stripe-react-native

I would assume this brings in the correct version that is compatible with the version of Expo including EAS Build as this is what expo want's you to use? or is this not the case?

Or am I missing something?

bogadrian commented 1 year ago

For whoever running into my problem: I solved it. All I had to do was to move the 'expo-build-proprieties' plugin to be the first plugin in the plugins array in app.config. Now Android and Ios builds successfully.

paulsizer commented 1 year ago

@bogadrian is this just 'papering over the cracks' without finding the real issue?

dmkorb commented 1 year ago

I had the same issue, and just solved it.

The problem seems to be, indeed, due to stripe package. Since 0.19, it needs compileSdkVersion to be at least 33: https://github.com/stripe/stripe-react-native/releases/tag/v0.19.0

Then, I didn't have expo-build-properties plugin, which made android/build.gradle select the default values:

buildToolsVersion = findProperty('android.buildToolsVersion') ?: '31.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '31')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '31')

Just changing the default values from 31 to 33 do the trick.


PS: for easier debugging, there's no need to build it remotely. Just head into the android folder and run ./gradlew :app:assembleRelease.