输入adb shell,提示device not found?
请注意,你的模拟器打开了吗?打开模拟器,就OK了。
# mkdir databases
# chmod 777 databases
# ls -l
drwxrwxrwx root root 2011-02-21 16:39 databases
drwxr-xr-x system system 2011-02-21 15:54 lib
# cd databases
# sqlite3 notes.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> sqlite3 notes.db
...> create table notes
...> (_id integer primary key,
...> note text not nul,
...> created integer);
SQL error: near "sqlite3": syntax error
sqlite> create table notes
...> (id integer primary key,
...> note text not null,
...> created integer);
sqlite>
.tables .databases .schema
.help
.exit
sqlite3 notes.db

本文解决了使用ADB命令遇到的设备未找到问题,并详细记录了通过ADB shell在Android模拟器中创建目录、设置权限及使用SQLite3进行数据库操作的过程。
3926

被折叠的 条评论
为什么被折叠?



