Vladimir Arevshatyan Vladimir Arevshatyan - 9 months ago 57
Android Question

Android App crashes without any logcat or any exception

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?

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')

Answer Source

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

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".

Logcat filter options