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

ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 33x #303

Closed
RedsTom opened this issue Apr 4, 2023 · 5 comments · Fixed by #349
Closed

ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 33x #303

RedsTom opened this issue Apr 4, 2023 · 5 comments · Fixed by #349
Labels

Comments

@RedsTom
Copy link

RedsTom commented Apr 4, 2023

Version: 1.7.2

Description: Unable to launch an application on any emulator or device

Command Output: ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 33x

SDK Info:

SDK Location:         /home/redstom/Android/Sdk/
AVD Home:             /home/redstom/.android/avd

API Level:            33x
Packages:             Android SDK Platform 33-ext5  platforms;android-33-ext5  1


API Level:            30
Packages:             Google APIs Intel x86 Atom System Image  system-images;android-30;google_apis;x86  10
(!) Missing Packages: Android SDK Platform 30  platforms;android-30


API Level:            29
Packages:             Android SDK Platform 29  platforms;android-29  5
                      Sources for Android 29  sources;android-29  1
(!) Missing Packages: Google Play Intel x86 Atom System Image  system-images;android-29;google_apis_playstore;x86  /.+/


Tools:

Android Emulator  emulator  32.1.12
Android SDK Build-Tools 33.0.2  build-tools;33.0.2  33.0.2
Android SDK Platform-Tools  platform-tools  34.0.1
SDK Patch Applier v4  patcher;v4  1
@RedsTom RedsTom added the android label Apr 4, 2023
@khromov
Copy link

khromov commented Apr 5, 2023

I have the same problem. Launching via Android Studio works.

@patrick-tresp
Copy link

same here

@khromov
Copy link

khromov commented Apr 13, 2023

@patrick-tresp I solved this by upgrading to Capacitor 5. Wrote a little about it over on Discord.

Here are the docs but they're a little bit wrong, see my comment later:
https://capacitorjs.com/docs/next/updating/5-0

https://discord.com/channels/520266681499779082/908091931295375380/1095795167635701800

Screenshot 2023-04-13 at 19 17 56

@Erudition
Copy link

I'm already using Capacitor 5. I just installed @nativescript/capacitor, though I didn't get the src folder created automatically. I figured I'd try running nativescript-dev, and this is what I get:

dev-nativescript android
[fatal] native-run failed with error

        ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 33x
  
        More details for this error may be available online: https://github.com/ionic-team/native-run/wiki/Android-Errors
  
file:///home/adroit/Projects/Minder/node_modules/.pnpm/@nativescript+capacitor@5.0.1_@types+node@20.1.4_esbuild@0.17.19_typescript@5.0.4_webpack@5.82.1/node_modules/@nativescript/capacitor/bin/dev-nativescript.mjs:42
        targetDevice = await prompts({
                     ^

ReferenceError: targetDevice is not defined
    at selectTargetDevice (file:///home/adroit/Projects/Minder/node_modules/.pnpm/@nativescript+capacitor@5.0.1_@types+node@20.1.4_esbuild@0.17.19_typescript@5.0.4_webpack@5.82.1/node_modules/@nativescript/capacitor/bin/dev-nativescript.mjs:42:22)
    at async file:///home/adroit/Projects/Minder/node_modules/.pnpm/@nativescript+capacitor@5.0.1_@types+node@20.1.4_esbuild@0.17.19_typescript@5.0.4_webpack@5.82.1/node_modules/@nativescript/capacitor/bin/dev-nativescript.mjs:82:24

@regetskcob
Copy link

@khromov I tried to upgrade, with this result...

Bildschirmfoto 2023-05-24 um 14 13 29

I already submitted another ticket regarding the pod error. #315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants