往 /system/lib添加so文件 – Android移動開發技術文章_手機開發 Android移動開發教學課程

As android developer, if you use the following command like:

adb push file /system/..

and meet problems like “failed to copy file to /system/…”, such as:

failed to copy ‘file’ to ‘/system/…’: No space left on device
failed to copy ‘file’ to ‘/system/…’: Out of memory

The resolve method is not using the Eclipse or AVD Manager to start the Android emulator, but by use the command first:

$emulator -avd youravdname -partition-size 128

Then you can try the command “adb push file /system/…”, and the problem maybe resolved.
 
 
 先啟動AVD (我叫做 first)  然後 執行 “adb push file /system/…”,  報錯 read-only file 。
 執行命令 adb remount  輸出 remount successed  再次執行 “adb push file /system/…” 報錯 Out of memory
 執行命令  emulator -avd youravdname -partition-size 128   無輸出 然後 系統自動再啟動一個新的                   AVD  (second)。
 
   關閉first  再 second 下執行 “adb push file /system/…”  報錯 read-only file
  再執行命令 adb remount 輸出 remount successed     再執行 “adb push file /system/…”  
  成功瞭 看到 文件傳輸速度哦

作者“jiguansheng”
 

發佈留言