3

I am using windows 7. One of my client gave me a apk file to see a previous project developed by another developer. But I have no android phone. So I want to install that apk file to my AVD device of my android sdk. But I am fail. Please give me details instruction how to install apk file inside AVD device of Eclipse(Android SDK). I am using windows 7.

4

1 回答 1

8

命令是:

adb 安装 app.apk

如果要在现有安装上安装它,您将需要:

adb install -r app.apk

这仅适用于已安装的应用程序和新的 app.apk 文件使用相同签名进行签名的情况。否则,您必须先卸载现有的应用程序。

确保你有[android installation]\platform-tools你的 PATH。如果您不想修改 PATH,请在命令行中使用 adb 的完整路径。例如:

c:\android-sdk-windows\platform-tools\adb.exe install app.apk
于 2012-04-11T18:28:17.207 回答