天天看點

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 為隻讀(任選)

進入到你的資料庫裡面去:

這樣就可以對你的資料庫進行操作了。