-
Notifications
You must be signed in to change notification settings - Fork 24
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
API Level 34 #322
Comments
same problem |
Same here |
I solved this issue by downgrading to API level 33 |
Yes , me too , thanks , weird. |
I found sometimes the error message Below error is shown when I unplug my android phone: -> % npx cap run android
✔ Copying web assets from dist_android to android/app/src/main/assets/public in 20.70ms
✔ Creating capacitor.config.json in android/app/src/main/assets in 925.08μs
[info] Inlining sourcemaps
✔ copy android in 46.28ms
✔ Updating Android plugins in 3.80ms
✔ update android in 34.54ms
[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 After plugging in and making sure -> % npx cap run android
✔ Copying web assets from dist_android to android/app/src/main/assets/public in 19.12ms
✔ Creating capacitor.config.json in android/app/src/main/assets in 857.67μs
[info] Inlining sourcemaps
✔ copy android in 40.55ms
✔ Updating Android plugins in 3.92ms
✔ update android in 27.36ms
✔ Running Gradle build in 1.32s
✔ Deploying app-debug.apk to ************* in 2.36s |
can you show me how |
In your Android Studio, download target SDK and image that is 33 |
This problem happens because "Run Android" is trying to run the application on an AVD (Android Virtual Device) API 34, if you remove or edit this AVD to API 33 or run the app on a non-virtual device through the cable connected to the computer (adb devices), this problem ends. Obviously you need:
|
Unable to find any devices: [fatal] native-run failed with error ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 34 |
In my SDK Manager, the version that has API Level 33 is Android 13.0 ("Tiramisu"). Is this the right one ?
And I download them. But then when I run
Any ideas ? |
You also need to download an emulator image, but it's better if you just update native-run to version 2.0.0 as it no longer requires an emulator image |
@jcesarmobile thanks for your help, I also just figured that out.
So I guess my search continues on different forums.... I wonder when developers will finally be freed from dependency hell and will be able to focus on building apps... Setting up a working environment from the first go almost seems like utopia. |
√ update android in 81.49ms |
Version: 34
native-run failed with error
ERR_UNSUPPORTED_API_LEVEL: Unsupported API level: 34
Description:
Can't Build Android App
Command Output:
SDK Info:
SDK 34
The text was updated successfully, but these errors were encountered: