当我在安卓设备上手动安装时,app-debug.apk出现崩溃。[英] app-debug.apk is crashing while I install it manually on my Android device

本文是小编为大家收集整理的关于当我在安卓设备上手动安装时,app-debug.apk出现崩溃。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

当我从Android Studio运行项目时,我的应用程序在Android设备上运行良好.但是,当我在设备上手动安装app-debug.apk时,启动时的应用程序正在崩溃.和app-debug-naligned.apk未生成. 请提前提供任何解决方案.

推荐答案

delete debug.apk从应用程序中的构建下的输出文件夹中.并再次生成并安装.

其他推荐答案

我通过取消选中即时运行从Android Studio中的设置解决了这个问题.

其他推荐答案

首先将APK安装在手机中,然后尝试使用该应用程序. 该应用在某些点击事件中崩溃. 单击该单击并检查Android监视器是否有错误,并根据您的错误继续解决.

对我而言,当我给予公共修饰符以onclick方法

时,它起作用了.

本文地址:https://www.itbaoku.cn/post/1937970.html

问题描述

My app is running fine on Android device when I run project from Android studio. But when I install app-debug.apk manually on my device then app is crashing on starting. And app-debug-unaligned.apk is not generating. Kindly give any solution, Thanks in advance.

推荐答案

Delete debug.apk from output folder under build in app. and generate again and install .

其他推荐答案

I resolved this issue by unchecking instant run from Settings in android Studio.

其他推荐答案

First install your apk in your mobile and then try using the app. The app gets crashed on some click event. perform that click and check the android monitor for error and proceed resolving based on ur error.

For me it worked when i have given public modifier to onclick methods