Closed paulsizer closed 1 year ago
Same error
I am also getting same issue while generating android build after upgrading expo-sdk to 47.
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.
The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.
A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.
"How to narrow down the source of an error"
You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.
That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.
This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.
also getting this error
Solved by using expo-build-properties
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 33,
"targetSdkVersion": 33,
"buildToolsVersion": "33.0.0"
},
"ios": {
"deploymentTarget": "13.0"
}
}
]
I've tried the solution @amitava82 provided above (and installed expo-buildd-properties), but the build is still failing with errors about the compile sdk version. Has anyone else had this problem and found a solution?
I have this in my plugins:
plugins: [
// ... other plugins
[
"expo-build-properties",
{
android: {
compileSdkVersion: 33,
targetSdkVersion: 33,
buildToolsVersion: "33.0.0",
},
ios: {
deploymentTarget: "13.0",
},
},
],
]
But in the gradlew logs I still see things like the below:
[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.
@bpringe update eas.json to use latest image like so
"production": {
"channel": "prod",
"ios": {
"image": "latest"
}
}
@amitava82 I've done that, but the errors still occur. To be more specific, I'm trying to build a dev client for Android. My eas.json config for that profile:
"development": {
"extends": "production",
"env": {
"APP_VARIANT": "development"
},
"developmentClient": true,
"channel": "development",
"distribution": "internal",
"android": {
"buildType": "apk",
"image": "latest"
},
"ios": {
"simulator": true,
"image": "default"
}
}
I see this in the logs of the failed gradlew build step:
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32
This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33
I'm not sure if this is related to the issue, but Is there a way to update the Android Gradle Plugin version used in the build?
Build/Submit details page URL
https://expo.dev/accounts/simplytrak/projects/coach-rx/builds/d63af04e-4215-4ce9-ac75-ad0696f1d2ac
Summary
EAS Build fails building my app for Android on Expo 47, iOS builds fine. It worked previously with Expo 46.
Managed or bare?
Managed
Environment
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.6.3 - ~/Apps/coach-rx-mobile/node_modules/.bin/npm SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 14.1/14B47b - /usr/bin/xcodebuild npmPackages: expo: ^47.0.0 => 47.0.3 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.9 npmGlobalPackages: eas-cli: 2.6.0 expo-cli: 6.0.8 Expo Workflow: managed
Error output
Reproducible demo or steps to reproduce from a blank project
N/A