简体   繁体   English

从 Play 商店下载后应用程序崩溃?

[英]App crashes after downloading from Play Store?

My app works fine in all devices before uploading it to play store.在将我的应用程序上传到 Play 商店之前,它在所有设备上都能正常运行。 Now i have upload new version.现在我已经上传了新版本。

android:versionCode="7"
android:versionName="6.2"

Please tell me how can i see logcat after downloading my app from Play Store.请告诉我如何在从 Play 商店下载我的应用程序后查看 logcat。 Is it possible to detect or get error.是否有可能检测到或得到错误。 How can i resolve this issue.我该如何解决这个问题。

One problem i found while building apk was.我在构建 apk 时发现的一个问题是。

I have enabled proguard.我启用了proguard。 now i delete that file proguard-project.txt .现在我删除了那个文件proguard-project.txt then eclipse let me create an apk.然后 eclipse 让我创建一个 apk。 Now tell me how to resolve this issue.现在告诉我如何解决这个问题。

My half problem will be solved if someone tell me how to see logcat of an app after downloading it from eclipse.如果有人告诉我如何在从 eclipse 下载后查看应用程序的 logcat,我的一半问题将得到解决。

Thanks in Advance.提前致谢。

When app crashes you can see two buttons, force stop / OK and report.当应用程序崩溃时,您可以看到两个按钮,强制停止/确定和报告。 Click on report button and there you will find various tabs.单击报告按钮,您会在那里找到各种选项卡。 In one of the tabs you will get stacktrace.在其中一个选项卡中,您将获得堆栈跟踪。

To see logs just use 'adb' tool.要查看日志,只需使用“adb”工具。 Connect device, type in a console:连接设备,在控制台中输入:

adb logcat

And launch your app.并启动您的应用程序。

And I would recommend you to use some service which logs app crashes and exceptions.我建议您使用一些记录应用程序崩溃和异常的服务。 For instance https://crashlytics.com例如https://crashlytics.com

DO as below on build.gradle:在 build.gradle 上执行以下操作:

buildfeature{
         release {
              minifyEnable false
                 ----
              }
          }

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

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