Android App 在没有任何 logcat 或任何异常的情况下崩溃 [英] Android App crashes without any logcat or any exception

查看:42
本文介绍了Android App 在没有任何 logcat 或任何异常的情况下崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天.我的情况很奇怪.应用程序在某些时候崩溃,但不像通常那样崩溃.应用程序返回之前的活动或完全退出应用程序而不显示对话框不幸的应用程序已关闭"和 android工作室没有给出任何异常日志.我认为这种行为是崩溃......这发生在几个设备上,这些设备是带有棒棒糖版本(默认 kitkat)的 huaweu p8 lite 和带有棒棒糖版本(默认 4.2.2)的索尼 xperia z.我根本无法调试应用程序并且根本崩溃...在其余设备上,应用程序不会崩溃或不会重新启动或不会退出,所以我不知道它有什么问题...请您帮帮我吗?

Good day.I have very weird situation.The app crashes on some point but not as it usually will crash.The app goes back to previous activity or completelly quiting the application without showing the dialog "UNFORTUNATALLY APP CLOSED" and the android studio did not giving any exception log.This behaviour i assume is a crash...This happens on couple devices which are huaweu p8 lite with lollipop version(default kitkat) and sony xperia z with lollipop version (default 4.2.2).Im unable to debug the app at all and the crash at all...On the rest devices the app wont crash or wont restart or wont quit so i have no clue whats wrong with it...Please can you help me?

构建 gradle 文件,这可能是奇怪的崩溃"选项

build gradle file which might be the option of weird "crash"

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.19.2'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven {
        url 'https://maven.fabric.io/public'
    }
    maven {
        url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository'
    }
    maven {
        url 'https://dl.bintray.com/intercom/intercom-maven'
    }
}

android {
    compileSdkVersion 22
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.sparklingzoo.framkalla"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 303
        versionName "3.0.3"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'org.javatuples:javatuples:1.2'
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.loopj.android:android-async-http:1.4.7'
    compile 'uk.co.chrisjenx:calligraphy:2.1.0'
    compile 'rapid.decoder:library:0.3.0'
    compile 'rapid.decoder:jpeg-decoder:0.3.0'
    compile 'rapid.decoder:png-decoder:0.3.0'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    compile 'com.facebook.android:facebook-android-sdk:4.1.1'
    compile('com.wu-man:android-oauth-client:0.0.3') {
        exclude module: 'support-v4'
    }
    compile project(':pk-library')
    compile 'com.stripe:stripe-android:1.0.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.2.4@aar') {
        transitive = true;
    }
    compile ('io.intercom.android:intercom-sdk:1.+@aar') {
        transitive = true
    }
    compile 'com.mixpanel.android:mixpanel-android:4.6.0'
//    compile 'com.google.android.gms:play-services:6.5.87'
    compile 'com.parse.bolts:bolts-android:1.2.0'
    compile files('libs/AF-Android-SDK-v3.3.0.jar')
}

推荐答案

我也遇到过这种情况.特别是当涉及到框架中的错误时,而不是编码错误(有时是本机崩溃).

I had this situation too. Especially when it came to bugs in the framework, instead of coding bugs (Sometimes it were native crashes).

它有助于从 logcat 中删除所有过滤器,以便您可以查看所有日志,而不仅仅是您的应用程序的日志.在 logcat 的右上角,将过滤器设置为No Filters"和Verbose".

It helps to remove all filters from logcat, so that you can see all logs, not only the log of your app. In the upper right corner of your logcat, set the filters to "No Filters" and to "Verbose".

更新:在 Android Studio 3.0 中,Logcat 发生了一些变化.Logcat 窗口本身不再有过滤器选项.相反,如果您单击左下角的(新)Logcat 选项卡,则会打开一个新的 logcat 窗口,但过滤器选项在选项卡本身中可见.

UPDATE: With Android Studio 3.0 the Logcat changed a bit. The Logcat window itself has no filter options anymore. Instead, if you click on the (new) Logcat tab in the lower left corner, a new logcat window is opened, but the filter options are visible in the tab itself.

这篇关于Android App 在没有任何 logcat 或任何异常的情况下崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆