问题描述
早上好.我的情况很奇怪.该应用程序有时会崩溃,但通常不会崩溃.该应用程序返回到先前的活动或完全退出了该应用程序,而未显示"UNFORTUNATALLY APP CLOSED"对话框和android工作室没有给出任何异常日志.我认为这是一个崩溃...这发生在配备棒棒糖版本(默认kitkat)的huaweu p8 lite和棒棒糖版本(默认4.2.2)的sony 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中删除所有过滤器,以便您不仅可以查看应用程序的日志,还可以查看所有日志.在日志猫的右上角,将过滤器设置为无过滤器",并将其设置为详细".
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或任何异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!