简体   繁体   English

Android:如何在不使用Android SDK工具的情况下在设备上安装APK

[英]Android: how to install apk on device, without using android sdk tools

I have built my app into a signed SDK. 我已经将我的应用程序构建为已签名的SDK。 I would like for beta testers to be able to install this on their devices without having to install and use the android sdk tools (I realize the apk can be installed with command line tools, but would prefer that not be necessary). 我希望Beta测试人员能够在无需安装和使用android sdk工具的情况下在其设备上安装此工具(我知道apk可以与命令行工具一起安装,但希望没有必要)。

I tried manually installing it, but it failed. 我尝试手动安装它,但是失败了。 I have an android tablet that I am using for testing. 我有一个用于测试的android平板电脑。 I copied the apk to my device's sdcard, and clicked on it. 我将apk复制到设备的sdcard中,然后单击它。 Which gave the option to install it with the App Manager. 从而可以选择使用App Manager进行安装。 Unfortunately the install fails with message "Application not installed". 不幸的是,安装失败并显示消息“未安装应用程序”。

Is there a way to manually install an apk, without using the command line tools? 有没有一种方法可以手动安装apk,而无需使用命令行工具?

Upload it to a Web site that is configured with .apk for the right MIME type (application/vnd.android.package-archive ). 将其上传到配置了.apk的MIME类型正确的网站(application/vnd.android.package-archive )。 Anyone clicking the link to your APK in their browser will be able to install it. 任何人在其浏览器中单击指向您的APK的链接都将能够安装它。

Some services have this built in. Dropbox, for example, knows about APK files, as I understand it. 某些服务具有此内置功能。例如,据我了解,Dropbox知道APK文件。

You can put the apk file on a server. 您可以将apk文件放在服务器上。 On the device/emulator open the browser and download the apk and now u can tap on the downloaded apk and install it. 在设备/仿真器上,打开浏览器并下载apk,现在您可以点击下载的apk并安装它。

Not sure if you still need it, but I just found an other easy way of installing .apk files. 不知道您是否仍然需要它,但是我只是找到了另一种安装.apk文件的简便方法。 This might also work for your .apk Your device does need a QR code reader and camera. 这对于您的.apk也可能适用。您的设备确实需要QR码阅读器和摄像头。 Have a look at www.apkinstall.com 看看www.apkinstall.com

A great, modern alternative is Crashlytics Beta . Crashlytics Beta是一个很好的现代替代方案。

Simply send beta testers an e-mail invitation, and by installing the Crashlytics Beta app, everything magically works. 只需向Beta测试人员发送电子邮件邀请,然后安装Crashlytics Beta应用程序,一切都会神奇地起作用。 Your testers will even get notifications of when you publish a new beta version into the Crashlytics IDE integration. 当您将新的Beta版本发布到Crashlytics IDE集成中时,您的测试人员甚至会收到通知。

除了需要启用非市场应用程序的方法(某些AT&T手机的用户无法执行的方法)外,在没有SDK的Windows上,SDK所使用的安装方法也相同,即以“ sideload wonder machine”的形式出现

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

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