Issue
I have an android application which uses an external library. I want to run that application on Android Virtual Device. The android documentation says:
If your application declares a uses-library element in its manifest file, the application can only run on a system image in which that external library is present. If you want to run your application on an emulator, create an AVD that includes the required library. Usually, you must create such an AVD using an Add-on component for the AVD's platform (for example, the Google APIs Add-on contains the Google Maps library).
How to create the AVD including the library file.
Solution
<uses-library> is used to restrict app availability in Google Play based on the availability of a library on user's device, like Google Maps. It's not used to declare the third party libraries that you've compiled in your project. That is done in the build.gradle file.
More info over here: https://developer.android.com/tools/building/configuring-gradle.html#declareDeps
Answered By - Aditya Naique
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.