Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the YouTube app on AVD?

I made an app that plays a YouTube video but when I launch it on Android virtual device, it tells me that YouTube application is required for this app to work. How can I install the YouTube app on my AVD? I don't have Google Play Services there. I did try using adb install command but I got an error saying: "Failure [INSTALL_FAILED_NO_MATCHING_ABIS]"

like image 771
user3757605 Avatar asked Aug 03 '15 16:08

user3757605


People also ask

How install Android apps on AVD?

In Android Studio, create an Android Virtual Device (AVD) that the emulator can use to install and run your app. In the toolbar, select your app from the run/debug configurations drop-down menu. From the target device drop-down menu, select the AVD that you want to run your app on. Click Run .

How do I run an app on AVD?

Run your app on the emulator After you have created an Android Virtual Device (AVD), you can start the Android Emulator and run an app in your project: In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run.


1 Answers

You get INSTALL_FAILED_NO_MATCHING_ABIS when installing an app (.apk file) that contains native libraries (.so files) for different architecture than device you are installing it on.

I can imagine you have yt APK for ARM architecture but trying to install it on an Intel-based emulator or device. Side note: Genymotion is Intel-based device.

Go and check apkmirror, there are two kinds of yt .apk there:

http://www.apkmirror.com/?s=youtube&post_type=apps_post

see those X86s or ARM64s?

Make sure to get the right one for your emulator.

like image 93
pelotasplus Avatar answered Sep 22 '22 10:09

pelotasplus