Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上我正在做一些数据库工作,我需要在每次启动之前将数据库的干净副本推送到模拟器。在每次运行之前从 DDMS 执行此操作有点乏味,因此我试图找出一种将其包含在运行配置中的方法。
如果您转到该Android-SDK\platform-tools文件夹,adb.exe您可以从命令行使用该程序将文件推送到 AVD。
Android-SDK\platform-tools
adb.exe
例子:adb push [filename] [targetlocation]
adb push [filename] [targetlocation]