V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xyt544251790
V2EX  ›  Android

realm 嵌入式数据库在安卓 app 上建库时报错

  •  
  •   xyt544251790 · Jul 2, 2020 · 11994 views
    This topic created in 2126 days ago, the information mentioned may be changed or developed.

    在尝试写一个非常简易的 app,里面需要建立一个嵌入式数据库然后在 app 里实现一点简易的查询排序功能。最初到网上爬到的数据建了个 mongoDB 数据库,不知道怎么存在安卓安装包里直接导入,遂查到可以用 realm 。但是运行时建库一直报错: javassist.NotFoundException:io.realm.com_get_quick_medical_helper_MainActivity3$1UserRealmProxyInterface 求大佬解惑,或者有其他解决办法曲线救国也可,感激不尽!

    https://github.com/xiayitian1003/Quick-Medical-Helper

    1 replies    2020-07-03 11:25:57 +08:00
    ccl1115
        1
    ccl1115  
       Jul 3, 2020
    以前尝试过 Realm, 被坑得很惨就放弃了.

    建议把数据导入到 SQLite 数据库里面, 然后在 Android 里面直接读取, 或者用 Room 框架读取.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 01:43 · PVG 09:43 · LAX 18:43 · JFK 21:43
    ♥ Do have faith in what you're doing.