无法通过浏览器下载安装APK [英] Can't install APK from browser downloads

查看:97
本文介绍了无法通过浏览器下载安装APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用默认浏览器从Web下载了APK,无法从浏览器->下载中打开它.

I've downloaded an APK from web, using the default browser and it can't be opened from the Browser -> Downloads.

它告诉我无法打开文件"

It tells me "Can't open file"

但是我可以使用文件浏览器(例如OI文件浏览器)来浏览和打开此APK,并且效果很好.

But I can use a file browser (like OI File Browser) to browse and open this APK, and it works well.

这里可能是什么问题?与HTTP标头有关吗?

What could be the problem here? Is it about the HTTP header?

推荐答案

如果文件已成功下载并且与您可以从OI打开的文件相同,则不应将其作为HTTP标头.

It shouldn't be HTTP headers if the file has been downloaded successfully and it's the same file that you can open from OI.

在黑暗中开枪,但这是否可能是您不允许从未知来源进行安装,而OI却以某种方式绕过了它?

A shot in the dark, but could it be that you are not allowing installation from unknown sources, and that OI is somehow bypassing that?

设置>应用程序>未知来源...

Settings > Applications > Unknown sources...

修改

从有效评论中摘录的答案.确保将Content-Type设置为application/vnd.android.package-archive

Answer extracted from comments which worked. Ensure the Content-Type is set to application/vnd.android.package-archive

这篇关于无法通过浏览器下载安装APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆