简体   繁体   English

使用 app-debug.apk 安装在我的设备上

[英]using the app-debug.apk to install on my device

I have a problem in using the app-debug.apk.我在使用 app-debug.apk 时遇到问题。 the program is running correctly on both the device and the emulator but if I use the app-debug.apk (from PC) to install it on my device (galaxy note 4) or another device.该程序在设备和模拟器上都正常运行,但是如果我使用 app-debug.apk(来自 PC)将它安装在我的设备(galaxy note 4)或其他设备上。 the installation complete and once I try to run it, it gives an error "unfortunately, the app has stopped running".安装完成,一旦我尝试运行它,它就会出现错误“不幸的是,该应用程序已停止运行”。

please note this issue happened after I used poi library to write data to an excel file.请注意这个问题发生在我使用 poi 库将数据写入 excel 文件之后。 it works correctly, but not if I use app-debug.apk generated on my pc.它可以正常工作,但如果我使用在我的电脑上生成的 app-debug.apk 则不行。

Problem : You can able to install app with USB cable(adb driver) works fine.问题:您可以使用 USB 电缆(adb 驱动程序)安装应用程序工作正常。 if you copy the app-debug.apk for output directory.如果你复制 app-debug.apk 作为输出目录。 app will not able to install.应用程序将无法安装。

Reason : app-debug file will have all the debugging tools installed in that apk which is used then debugging in android studio and you even notice that the app size is also high than the usual.原因:app-debug 文件会在那个apk 中安装所有的调试工具,然后在android studio 中调试,你甚至会注意到app 的大小也比平时高。

Solution : you have to build a sign apk or just build an apk file for that go to build menu and go to build bundles / apk and then build a apk after build is finished now to output directory as gone previously for the app-debug.apk and this app-debug.apk file is just recreated without debugger and additional tools that android studio wants now this file can be installed successfully if you share this file to any device.解决方案:您必须构建一个标志 apk 或者只是构建一个 apk 文件,转到构建菜单并转到构建包/apk,然后在构建完成后构建一个 apk 到输出目录,就像之前的 app-debug 一样。 apk 并且这个 app-debug.apk 文件只是在没有调试器和 android studio 现在想要的其他工具的情况下重新创建的,如果您将此文件共享到任何设备,则可以成功安装此文件。

I just shared what I know.我只是分享我所知道的。 This may not be the correct reason for the problem but, the solution works fine.这可能不是问题的正确原因,但解决方案工作正常。 if you know any information, please answer the question.如果您知道任何信息,请回答问题。

I have a problem in using the app-debug.apk.我在使用app-debug.apk时遇到问题。 the program is running correctly on both the device and the emulator but if I use the app-debug.apk (from PC) to install it on my device (galaxy note 4) or another device.该程序在设备和仿真器上均正常运行,但是如果我使用app-debug.apk(从PC)将其安装在我的设备(银河笔记4)或其他设备上。 the installation complete and once I try to run it, it gives an error "unfortunately, the app has stopped running".安装完成,一旦我尝试运行它,就会显示错误消息“不幸的是,该应用已停止运行”。

please note this issue happened after I used poi library to write data to an excel file.请注意,在我使用poi库将数据写入excel文件后,发生了此问题。 it works correctly, but not if I use app-debug.apk generated on my pc.它可以正常工作,但是如果我使用在我的电脑上生成的app-debug.apk则不能。

I found the solution for this problem.我找到了这个问题的解决方案。 You need to sign the apk from the build menu.您需要从构建菜单中对 apk 进行签名。 You do not need play store signature create your own is enough.你不需要玩商店签名创建你自己的就足够了。

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

相关问题 我在Android设备上手动安装app-debug.apk时会崩溃 - app-debug.apk is crashing while I install it manually on my Android device 运行 react-native run-android 时无法在物理设备上安装调试 APK - 无法解析 APK 文件:/data/local/tmp/app-debug.apk - Unable to install debug APK on physical device when running react-native run-android - Failed to parse APK file: /data/local/tmp/app-debug.apk React native:安装app-debug.apk - React native: Installing app-debug.apk app-debug.apk在磁盘上不存在 - app-debug.apk does not exist on disk 是app-debug.apk应用程序的实际大小吗? - is app-debug.apk the application actual size? 为什么我的APK文件显示app-debug.apk? 如何重命名? - Why does my APK file say app-debug.apk? How do I rename it? 从“app-debug.apk”更改生成的apk名称 - Change generated apk name from “app-debug.apk” app-debug.apk和app-debug-unaligned.apk之间的区别 - Difference between app-debug.apk and app-debug-unaligned.apk Ionic cordova build android –prod –release 只构建一个调试apk (app-debug.apk) - Ionic cordova build android –prod –release only builds a debug apk (app-debug.apk) flutter 停留在 Built build\app\outputs\flutter-apk\app-debug.apk - flutter stuck at Built build\app\outputs\flutter-apk\app-debug.apk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM