Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Api Error: Invalid request - Target SDK of artifact is too low: 18. #2139

Closed
danish-dct opened this issue Nov 30, 2023 · 2 comments
Closed
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@danish-dct
Copy link

Build/Submit details page URL

https://expo.dev/accounts/itdct/projects/dct/submissions/ebcfb191-20db-4dbd-9c9e-06a8fdd59290

Summary

Hi,

Before posting here, I tried the discord and forums as well but that did not help.

I'm trying to submit my app to play store using eas submit --platform android but it does not work.

The error it shows:

Preparing aab at path '/tmp/submissions/...185d.aab' for upload...
Updating track 'production'...
Uploading all changes to Google Play...
Google Api Error: Invalid request - Target SDK of artifact is too low: 18. - Retrying...
Google Api Error: Invalid request - Target SDK of artifact is too low: 18. - Retrying...
Google Api Error: Invalid request - Target SDK of artifact is too low: 18. - Retrying...
Google Api Error: Invalid request - Target SDK of artifact is too low: 18. - Retrying...
Google Api Error: Invalid request - Target SDK of artifact is too low: 18. - Retrying...
[!] Google Api Error: Invalid request - Target SDK of artifact is too low: 18.
Fastlane supply failed
fastlane supply --aab /tmp/submissions/...185d.aab --track production --json_key /tmp/submissions/...fgfdg/service-account.json --package com.fhtfh.fghfg --changes_not_sent_for_review false --release_status completed exited with non-zero code: 1

Failed to submit the app
We couldn't figure out what went wrong. See logs to learn more.

Managed or bare?

Managed

Environment

npx expo-env-info

  expo-env-info 1.0.5 environment info:
    System:
      OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
      Shell: 5.1.16 - /bin/bash
    Binaries:
      Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
      Yarn: 1.22.19 - /usr/bin/yarn
      npm: 9.8.1 - ~/.nvm/versions/node/v16.18.1/bin/npm
      Watchman: 20230108.221750.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: AI-223.8836.35.2231.11005911
    npmPackages:
      @expo/webpack-config: ^0.17.2 => 0.17.4 
      expo: ~47.0.12 => 47.0.13 
      react: 18.1.0 => 18.1.0 
      react-dom: 18.1.0 => 18.1.0 
      react-native: 0.70.8 => 0.70.8 
      react-native-web: ~0.18.9 => 0.18.10 
    npmGlobalPackages:
      eas-cli: 3.15.0
      expo-cli: 6.3.10
    Expo Workflow: managed

npx expo-doctor

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

Error output

No response

Reproducible demo or steps to reproduce from a blank project

Run eas submit --platform android

@danish-dct danish-dct added the needs review Issue is ready to be reviewed by a maintainer label Nov 30, 2023
@szdziedzic
Copy link
Member

Hi I think that your app is not targeting the required API level of 33

https://developer.android.com/google/play/requirements/target-sdk

@danish-dct
Copy link
Author

Hi,

Yeah that was the issue. Fixed by adding the below code in app.json:

[
	"expo-build-properties",
	{
		"android": {
			"targetSdkVersion": 33
		}
	}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants