简体   繁体   English

如何获取.apk文件的文件路径?

[英]How to obtain file path for .apk file?

i am trying to install two apk files which are currently in my downloads folder via the adb shell using adb install path_here.apk . 我正在尝试使用adb install path_here.apk通过adb shell安装两个当前在我的下载文件夹中的apk文件。 I've right clicked the files to get the file path however, it saying that it can't find the file to install. 我右键单击文件以获取文件路径,但是它表示找不到要安装的文件。 Is there a way i can correctly obtain the path? 有没有办法我可以正确获取路径?

The path is the folder where the file is currently located, and not some kind of "internal apk path". 该路径是文件当前所在的文件夹,而不是某种“内部apk路径”。 So, try: 因此,请尝试:

adb install folder/where/file/is/located/file.apk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM