我有Mac M1 PRO芯片组,当我在Android Studio中运行测试时,我收到错误,附在下面,我能够构建,应用程序运行良好

mzsu5hc0  于 2022-09-21  发布在  Mac
关注(0)|答案(1)|浏览(229)

Com.almworks.sqlite4java.SQLiteException:[-91]无法加载库:java.lang.UnssubfiedLinkError:dlopen(/private/var/folders/66/7nxvb30d67ddp3llcg4wqrw80000gq/T/1663693890027-0/libsqlite4java.dylib,0x0001):已尝试:

(FAT文件,但缺少兼容的体系结构(Have(i386,x86_64),Need(Arm64e)java.lang.RUNTIME异常:com.almworks.sqlite4java.SQLiteException:[-91]无法加载库:java.lang.UnssubfiedLinkError:/private/var/folders/66/7nxvb30d67ddp3llcg4wqrw80000gq/T/1663693890027-0/libsqlite4java.dylib:dlopen(/private/var/folders/66/7nxvb30d67ddp3llcg4wqrw80000gq/T/1663693890027-0/libsqlite4java.dylib,0x0001):Try:‘/private/var/folders/66/7nxvb30d67ddp3llcg4wqrw80000gq/T/1663693890027-0/libsqlite4java.dylib’

(FAT文件,但缺少兼容的体系结构(拥有(i386,x86_64),需要(Arm64e)在org.robolectric.shadows.util.SQLiteLibraryLoader.loadFromDirectory(SQLiteLibraryLoader.java:90)at org.robolectric.shadows.util.SQLiteLibraryLoader.doLoad(SQLiteLibraryLoader.java:57)

rjjhvcjd

rjjhvcjd1#

根据此Apple Silicon support issue

也许你可以把机器人电动车升级到4.7.0+。

在build.gradle

testImplementation "org.robolectric:robolectric:4.8.1"

相关问题