ionic-team / native-run

Utility for running native binaries on iOS and Android devices and simulators/emulators
MIT License
120 stars 21 forks source link

ERR_UNSUPPORTED_API_LEVEL Android 14 Upside Down Cake #372

Closed codingscenes closed 5 months ago

codingscenes commented 6 months ago

Version:

√ Copying web assets from dist to android\app\src\main\assets\public in 25.14ms √ Creating capacitor.config.json in android\app\src\main\assets in 1.13ms [info] Inlining sourcemaps √ copy android in 48.92ms √ Updating Android plugins in 3.55ms [info] Found 4 Capacitor plugins for android: @capacitor/app@5.0.6 @capacitor/haptics@5.0.6 @capacitor/keyboard@5.0.6 @capacitor/status-bar@5.0.6 √ update android in 50.47ms [error] native-run failed with error

    ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 34

    More details for this error may be available online:
    https://github.com/ionic-team/native-run/wiki/Android-Errors

Description:

I am not able to run npx cap run android

Command Output:

ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 34

    More details for this error may be available online:
    https://github.com/ionic-team/native-run/wiki/Android-Errors

SDK Info:

14

NelsonDJCR commented 6 months ago

I got the same problem

SkySor44 commented 6 months ago

Same here. Can there also be added a link or documentation to your wiki of how to download the previous version of the android sdk that is supported?

I've made very little progress on this when trying download and configure the previous api version

sabrien-saber commented 5 months ago

i have same problem

jacobwod commented 5 months ago

I'm also getting ERR_UNSUPPORTED_API_LEVEL. Clean install of Android Studio on macOS 13. The following SDKs (Platform and Build Tools) are installed (both v33 and v34, as you can see in the screenshots below):

Skärmavbild 2023-12-08 kl  13 35 10 Skärmavbild 2023-12-08 kl  13 35 15

It's worth noting that uninstalling v34 while leaving the supported v33 does not solve the issue as it results in ERR_UNSUITABLE_API_INSTALLATION instead.


My guess is that we just don't have installed the right combination of SDK Platform and Build tools. Please share if you manage to figure out the correct versions of required components to be installed.

DevkoDev commented 5 months ago

I have the same issue here , tried several things but no luck so far

DevkoDev commented 5 months ago

image

DevkoDev commented 5 months ago

fixed by installing this

image

and i have also these installed

image

jcesarmobile commented 5 months ago

this is fixed in native-run 2.0.0, please, update to that version, it was released almost two months ago