简体   繁体   English

开发后无法在其他设备上运行应用程序

[英]Unable to run an application on other device after development

Recently I developed an android application for the first time and I was looking forward to transfer it in the form of apk to another device.最近我第一次开发了一个android应用程序,我期待以apk的形式将它转移到另一个设备上。 But unfortunately, I was not able to run it there.但不幸的是,我无法在那里运行它。 Can someone guide me on how can I transfer an application to another device without publishing it to playstore?有人可以指导我如何将应用程序转移到另一台设备而不将其发布到 Playstore?

On non-Samsung devices:在非三星设备上:

  • Go to your phone's Settings. Go 到您手机的设置。
  • Go to Security & privacy > More settings. Go 到安全和隐私 > 更多设置。
  • Tap on Install apps from external sources.点击从外部来源安装应用程序。
  • Select the browser (eg, Chrome or Firefox) you want to download the APK files from. Select 您要从中下载 APK 文件的浏览器(例如 Chrome 或 Firefox)。
  • Toggle Allow app installs on.切换允许应用安装。

On Samsung devices:在三星设备上:

  • Go to your phone's Settings. Go 到您手机的设置。
  • Go to Biometrics and security > Install unknown apps. Go 到生物识别和安全 > 安装未知应用程序。
  • Select the browser (eg, Chrome or Firefox) you want to download the APK files from. Select 您要从中下载 APK 文件的浏览器(例如 Chrome 或 Firefox)。
  • Toggle Allow app installs on.切换允许应用安装。

After allowing chrome, drive, file manager, etc. just browse/download the file from it and install.在允许 chrome、驱动器、文件管理器等之后,只需从中浏览/下载文件并安装。

At Android studio, go to Build -> Build Bundle(s) / APK(s) -> Build APK(s).在 Android 工作室,go 到 Build -> Build Bundle(s) / APK(s) -> Build APK(s)。

This is the way to get an apk from android studio.这是从 android 工作室获取 apk 的方法。 After you made an apk file from Window, you can mail it to your phone or any device.从 Window 制作 apk 文件后,您可以将其邮寄到您的手机或任何设备。

2. You can connect your device to the computer, and click Run 'app', which is green triangle. 2.您可以将您的设备连接到计算机,然后单击运行“应用程序”,即绿色三角形。

This is the two way that you can run your application on the Samsung and Android based device.这是您可以在基于三星和 Android 的设备上运行应用程序的两种方式。 Also, you can go into the developer mode in your Samsung device.此外,您可以 go 进入三星设备的开发者模式。

depending upon the app developing software you used the process may be different.根据您使用的应用程序开发软件,该过程可能会有所不同。 The two most common one of them is android studio and visual studio:其中最常见的两种是android studio和visual studio:

Android Studio: https://developer.android.com/studio/run Visual studio: Right-click at your Android project: open 'Properties' tab. Android Studio: https://developer.android.com/studio/run Visual studio: Right-click at your Android project: open 'Properties' tab. Be sure that selected drop down is 'Release', not 'Debug'.确保选择的下拉菜单是“发布”,而不是“调试”。 Click 'Build' -> 'Clean solution': 3. Then click 'Build' -> 'Rebuild'.单击“构建”->“清洁解决方案”: 3. 然后单击“构建”->“重建”。

  1. Create the package:创建 package:

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

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