Updated SDK 48 from 47
I followed the documentation to update, after upgrading to SDK 48, I’m having an error when running the command eas build -p android --profile preview
I already deleted the android folder and ran eas update:configure
and npx expo prebuild
again
error:
build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '33.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '33')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '33')
// if (findProperty('android.kotlinVersion')) {
// kotlinVersion = findProperty('android.kotlinVersion')
// }
kotlinVersion = "1.5.31"
frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle:7.4.1')
classpath('com.facebook.react:react-native-gradle-plugin')
}
}
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
}
maven {
// Android JSC is installed from npm
url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
}
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
}
}
// @generated begin expo-camera-import - expo prebuild (DO NOT MODIFY) sync-f244f4f3d8bf7229102e8f992b525b8602c74770
def expoCameraMavenPath = new File(["node", "--print", "require.resolve('expo-camera/package.json')"].execute(null, rootDir).text.trim(), "../android/maven")
allprojects { repositories { maven { url(expoCameraMavenPath) } } }
// @generated end expo-camera-import
eas.json:
{
"cli": {
"version": ">= 2.1.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"channel": "development"
},
"preview": {
"android": {
"buildType": "apk"
},
"channel": "preview"
},
"production-ios": {
"ios": {
"image": "latest"
},
"channel": "production-ios"
},
"production": {
"channel": "production"
}
},
"submit": {
"production": {}
}
}
package.json:
"dependencies": {
"@expo-google-fonts/lobster": "^0.2.2",
"@expo-google-fonts/roboto": "^0.2.2",
"@expo-google-fonts/ubuntu": "^0.2.2",
"@react-native-async-storage/async-storage": "1.17.11",
"@react-native-community/datetimepicker": "6.7.3",
"@react-native-community/masked-view": "^0.1.11",
"@react-native-menu/menu": "^0.5.2",
"@react-navigation/bottom-tabs": "^6.0.9",
"@react-navigation/material-top-tabs": "^6.5.2",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"axios": "^0.24.0",
"date-fns": "^2.28.0",
"expo": "~48.0.18",
"expo-av": "~13.2.1",
"expo-barcode-scanner": "~12.3.2",
"expo-camera": "~13.2.1",
"expo-checkbox": "~2.3.1",
"expo-dev-client": "~2.2.1",
"expo-fast-image": "^1.1.3",
"expo-file-system": "~15.2.2",
"expo-image-manipulator": "~11.1.1",
"expo-linear-gradient": "~12.1.2",
"expo-location": "~15.1.1",
"expo-navigation-bar": "~2.1.1",
"expo-network": "~5.2.1",
"expo-notifications": "~0.18.1",
"expo-splash-screen": "~0.18.2",
"expo-status-bar": "~1.4.2",
"expo-system-ui": "~2.2.1",
"expo-updates": "~0.16.4",
"moment": "^2.29.1",
"onesignal-expo-plugin": "^1.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.8",
"react-native-barcode-mask": "^1.2.4",
"react-native-countdown-circle-timer": "^3.0.9",
"react-native-countdown-component": "^2.7.1",
"react-native-curved-bottom-bar": "^2.1.4",
"react-native-datepicker": "^1.7.2",
"react-native-dropdown-picker": "5.4.0",
"react-native-gesture-handler": "~2.9.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-maps": "1.3.2",
"react-native-masked-text": "^1.13.0",
"react-native-material-dropdown": "^0.11.1",
"react-native-modal-filter-picker": "^2.1.0",
"react-native-onesignal": "^4.5.0",
"react-native-pager-view": "6.1.2",
"react-native-paper": "^4.11.2",
"react-native-popup-menu": "^0.15.12",
"react-native-ratings": "^8.1.0",
"react-native-recaptcha-that-works": "^1.3.1",
"react-native-root-toast": "^3.3.0",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"react-native-searchable-dropdown": "^1.1.3",
"react-native-searchable-picker": "^1.0.5",
"react-native-shadow-2": "^7.0.6",
"react-native-snap-carousel": "^4.0.0-beta.6",
"react-native-super-grid": "^4.2.0",
"react-native-svg": "13.4.0",
"react-native-tab-view": "^3.3.4",
"react-native-vector-icons": "^9.0.0",
"react-native-web": "~0.18.7",
"react-native-webview": "11.26.0",
"react-native-youtube-iframe": "^2.2.2",
"reactn": "^2.2.7"
},
"devDependencies": {
"@babel/core": "^7.19.3"
},
"private": true