无法下载 &从自己的网页安装应用程序 APK [英] Cannot download & install app APK from own webpage

查看:25
本文介绍了无法下载 &从自己的网页安装应用程序 APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在网站上下载我的应用,但是,当我上传 APK 文件时,浏览器找不到它.

I'm trying to have my apps available for download on a website, however, when I upload the APK file, it cannot be found by the browser.

在压缩 APK 时,它被检测到.但是,并非所有手机都可以从 ZIP 安装 - 我得到的结果喜忧参半.

When zipping the APK, it is detected. However, not all phones can install from a ZIP - I have had mixed results.

为什么我不能简单地上传一个 APK 并有一个指向它的 URL 来下载?为什么我会收到 404,我该怎么做才能避免它?

Why can't I simply upload an APK and have a URL point to it for a download? Why am I getting a 404 and what can I do to avoid it?

推荐答案

为什么我不能简单地上传一个 APK 并有一个指向它的 URL 来下载?

Why can't I simply upload an APK and have a URL point to it for a download?

你可以.很多人都这样做.有整个网站都致力于这样做,尽管通常包含盗版内容.

You can. Plenty of people do it. There are entire Web sites dedicated to doing it, albeit usually with pirated content.

为什么我会收到 404

Why am I getting a 404

因为您在浏览器中输入的 URL 不是文件在服务器上的 URL.无论情况如何,互联网上大约 100% 的 404 错误都是由这个原因造成的.

Because the URL you are entering into the browser is not the URL where the file is at on the server. This is the cause of approximately 100% of 404 errors, across the Internet, regardless of circumstance.

我该怎么做才能避免它?

what can I do to avoid it?

使用正确的网址.此外,请务必将服务器的 MIME 类型配置映射设置为将您的文件提供为 application/vnd.android.package-archive.

Use the proper URL. Also, be sure to set the server's MIME type configuration map to serve up your file as application/vnd.android.package-archive.

这篇关于无法下载 &从自己的网页安装应用程序 APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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