天天看点

android手机出现sqlite3 not found的解决方法

解决方法如下:

1、如果/system目录为不可读写的,需要挂载为读写:

C:\Users\easteq>adb shell

C:\Users\easteq>adb push F:\sqlite3_not_found\sqlite3 /system/xbin

ps:如果不行试如下方法

 a、将先前保存其他位置的sqlite3 在DDMS面板中通过右上角手机图标(push a file onto the device) 将文件push到sdcard中,准确的是在/mnt/sdcard

 b、然后在命令行敲入 cat /mnt/sdcard/sqlite3 > /system/xbin/sqlite3 复制文件

3、需要修改sqlite3的权限:

4、进行sqlite3的测试:

如果出现如下提示:

link_image[1957]:  2684 could not load needed library 'libncurses.so' for 'sqlit

e3' (load_library[1112]: Library 'libncurses.so' not found)CANNOT LINK EXECUTABL

E

,则还需要push libncurses.so文件,

方法是:

C:\Users\easteq>adb push F:\sqlite3_not_found\libncurses.so /system/lib

2178 KB/s (185136 bytes in 0.083s)

libncurses.so也可以自己去下载

5、还原/system 为只读(任选)

进入到你的数据库里面去:

这样就可以对你的数据库进行操作了。