Android 无法加载库mongo_embedded

Android 无法加载库mongo_embedded,android,mongodb,mongodb-stitch,Android,Mongodb,Mongodb Stitch,我正试图按照以下指南在Android项目中使用MongoDB: 但应用程序在以下行崩溃: val mongoClient=stitchClient.getServiceClient(RemoteMongoClient.factory,“mongodb atlas”) 带着下面的信息 com.mongodb.embedded.client.MongoClientEmbeddedException: The mongo embedded library could not be initializ

我正试图按照以下指南在Android项目中使用MongoDB:

但应用程序在以下行崩溃:
val mongoClient=stitchClient.getServiceClient(RemoteMongoClient.factory,“mongodb atlas”)

带着下面的信息

com.mongodb.embedded.client.MongoClientEmbeddedException: The mongo embedded library could not be initialized
    Server error message: Unable to load the Mongo Embedded Library.
    Please either: Set the libraryPath when calling MongoEmbeddedCAPI.create or 
    Ensure the library is set on the jna.library.path or the java.library.path system property.
....
....
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'mongo_embedded': Native library (android-x86/libmongo_embedded.so) not found in resource path (.)
但是,当我在手机上运行应用程序时,它正在工作。
了解虚拟仿真器崩溃的原因。

客户端崩溃的原因是mongoDB stitch SDK需要在64位设备上运行(请参阅)。现在几乎所有的android设备都是64位的,但是android studio中的模拟器默认是32位的

要解决此问题,请转到AVD管理器并创建一个支持x86_64(这是64位)而不是x86(这是32位)的新虚拟设备