简体   繁体   中英

No Compatible APKs found for the device

I was testing the new version of Ionic framework with Capacitor as I tried to build and run my app on emulator and my device I faced this error without success in installing app

No Compatible APKs found for the device. 在此处输入图像描述

after lots of search and struggling to fix this and lots of fails, as I was talking to one of my friends about it I realised maybe this is related to build configuration.

as I could not find similar anywhere I decided to share the answer here maybe helps and save someone time.

No Compatible APKs found for the device.

This error appears to your Build Output when android studio cannot find the related APK file generated, so by a simple change in your buid configuration you can fix this, in my case I fixed the problem like this: thorugh this section select:

Edit Configuration

在此处输入图像描述

在此处输入图像描述

default Deploy option under Installation option is set to

APK from app bundle

在此处输入图像描述

by changing it to

Default APK

在此处输入图像描述

you'll be able to build and run your app successfully.

I hope it help you to run your shiny app asap;p

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM