首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >启动时的致命信号(KitKat)

启动时的致命信号(KitKat)
EN

Stack Overflow用户
提问于 2019-07-16 01:44:12
回答 1查看 2K关注 0票数 3

我在KitKat上收到了以下错误,但在Android M和更高版本上没有问题:

代码语言:javascript
运行
复制
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'com.crashlytics.android.ndk.CrashlyticsNdk', referenced from method com.crashlytics.android.CrashlyticsInitProvider.createCrashlyticsKits
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'com.evernote.android.job.v21.PlatformJobService', referenced from method com.evernote.android.job.JobApi.isSupported
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'com.evernote.android.job.v21.PlatformJobService', referenced from method com.evernote.android.job.JobApi.isSupported
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'com.evernote.android.job.v21.PlatformJobService', referenced from method com.evernote.android.job.JobApi.isSupported
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'androidx.core.app.JobIntentService$JobServiceEngineImpl', referenced from method androidx.core.app.JobIntentService.onCreate
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'androidx.core.view.ViewCompat$2', referenced from method androidx.core.view.ViewCompat.addOnUnhandledKeyEventListener
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method androidx.core.view.ViewCompat.dispatchApplyWindowInsets
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method androidx.core.view.ViewCompat.onApplyWindowInsets
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.view.View$OnUnhandledKeyEventListener', referenced from method androidx.core.view.ViewCompat.removeOnUnhandledKeyEventListener
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'androidx.core.view.ViewCompat$1', referenced from method androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method androidx.appcompat.widget.AppCompatImageHelper.hasOverlappingRendering
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.view.textclassifier.TextClassificationManager', referenced from method androidx.appcompat.widget.AppCompatTextClassifierHelper.getTextClassifier
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.app.NotificationChannel', referenced from method co.ronash.pushe.Pushe.a
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.app.job.JobScheduler', referenced from method co.ronash.pushe.Pushe.a
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.app.NotificationChannel', referenced from method co.ronash.pushe.Pushe.createNotificationChannel
2145-2145/com.cafeapps.stroydownloader E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.google.android.material.tabs.TabLayout$TabView.updateBackgroundDrawable
2145-2145/com.cafeapps.stroydownloader A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=128), thread 2145 (stroydownloader)

我认为唯一的错误是最后一行,因为其余的可以忽略。这是我的build.gradle:

代码语言:javascript
运行
复制
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.cafeapps.stroydownloader"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        defaultConfig.vectorDrawables.useSupportLibrary = true
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }
    productFlavors {
        ....
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
    implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'

    implementation 'com.libizo:customedittext:1.0.6'
    implementation 'com.github.sabujak-sabujak:RoundedButton:v0.1.1'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'com.squareup.retrofit2:retrofit:2.5.0'
    implementation 'com.github.bumptech.glide:glide:4.9.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
    implementation 'com.squareup.retrofit2:converter-scalars:2.1.0'
    implementation 'org.jsoup:jsoup:1.12.1'
    implementation 'com.hmomeni.progresscircula:progresscircula:0.2.1'
    implementation 'com.github.alirezat775:downloader:1.0.0'
    implementation 'android.arch.persistence.room:runtime:1.1.1'
    annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
    implementation 'com.github.ybq:Android-SpinKit:1.2.0'
    implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
    implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
    implementation 'io.reactivex.rxjava2:rxjava:2.2.6'
    implementation 'com.github.halilozercan:BetterVideoPlayer:1.2.alpha1'
    implementation 'com.github.chrisbanes:PhotoView:2.1.4'
    implementation 'com.github.florent37:viewtooltip:1.2.2'


    //Ads , firebase , ....

    implementation 'com.google.android.gms:play-services-ads:16.4.1'
    implementation 'com.google.firebase:firebase-ads:17.2.0'
    implementation 'com.google.firebase:firebase-config:16.1.3'
    implementation 'com.google.firebase:firebase-auth:16.1.0'
    implementation 'com.google.android.ads.consent:consent-library:1.0.6'
    implementation 'co.ronash.android:pushe-base:1.6.3'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
    implementation 'ir.tapsell.sdk:tapsell-sdk-android:4.3.3'
    implementation 'androidx.multidex:multidex:2.0.1'

}

apply plugin: 'com.google.gms.google-services'

我已经意识到(使用调试模式)我的主活动和两个片段都是在崩溃之前创建的。任何帮助都将不胜感激。

EN

Stack Overflow用户

发布于 2019-07-16 23:36:20

代码语言:javascript
运行
复制
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.cafeapps.stroydownloader">

    <application
        ....
        android:hardwareAccelerated="false">
        .....
    </application>

</manifest>

AndroidManifest.xml中禁用hardwareAcceleration解决了我的问题。

票数 1
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57044777

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档