[英]android: self signed apk can install in emulator but not in device
I wrote a small program and created a signed apk in eclipse kepler. 我写了一个小程序,并在Eclipse Kepler中创建了一个签名的apk。
I cannot install the apk into my device through dropbox with "Unknown source" option UNCHECKED. 我无法通过带有“未知来源”选项未选中的Dropbox将apk安装到我的设备中。 The option is under Setting -> Security. 该选项位于设置->安全下。
However, I can install the apk into my emulator by using 但是,我可以使用以下命令将apk安装到模拟器中
adb install abc.apk 亚行安装abc.apk
The emulator still got "Unknown Source" UNCHECKED. 模拟器仍未选中“未知源”。
Could anyone help? 有人可以帮忙吗? Thank you very much! 非常感谢你!
Regards, 问候,
Antony 安东尼
It will also work via ADB on the actual device while unknown sources is unchecked. 当未检查未知来源时,它也将通过实际设备上的ADB工作。
However, if you want to install the APK right from your device using a file management app, you will have to enable installations from unknown sources. 但是,如果您想使用文件管理应用从设备上直接安装APK,则必须启用来自未知来源的安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.