Android logcat не отображается исключение полные данные? - PullRequest
1 голос
/ 08 мая 2020

недавно в моем android logcat, я получаю подобное исключение

java.lang.NullPointerException: Attempt to invoke virtual method 'int ir.nililand.messenger.d.i.a()' on a null object reference
        at ir.nililand.messenger.pages.y.a(:267)
        at ir.nililand.messenger.pages.u.a(lambda)
        at ir.nililand.messenger.c.b.b(:86)
        at androidx.recyclerview.widget.RecyclerView$g.a(:7065)
        at androidx.recyclerview.widget.RecyclerView$g.a(:7107)
        at androidx.recyclerview.widget.RecyclerView$v.a(:6012)
        at androidx.recyclerview.widget.RecyclerView$v.a(:6279)
        at androidx.recyclerview.widget.RecyclerView$v.b(:6118)
        at androidx.recyclerview.widget.RecyclerView$v.d(:6114)
        at androidx.recyclerview.widget.LinearLayoutManager$c.a(:2303)
        at androidx.recyclerview.widget.LinearLayoutManager.a(:1627)
        at androidx.recyclerview.widget.LinearLayoutManager.a(:1587)
        at androidx.recyclerview.widget.LinearLayoutManager.e(:665)
        at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(:4134)
        at androidx.recyclerview.widget.RecyclerView.dispatchLayout(:3851)
        at androidx.recyclerview.widget.RecyclerView.consumePendingUpdateOperations(:1897)
        at androidx.recyclerview.widget.RecyclerView$a.run(:414)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:884)
        at android.view.Choreographer.doCallbacks(Choreographer.java:696)
        at android.view.Choreographer.doFrame(Choreographer.java:628)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:870)
        at android.os.Handler.handleCallback(Handler.java:743)
        at android.os.Handler.dispatchMessage(Handler.java:95)

ir.nililand.messenger.d.i.a() это моя проблема, что я должен делать для получения такой информации ->

Attempt to invoke virtual method 'java.io.Serializable android.os.Bundle.getSerializable(java.lang.String)' on a null object reference

у меня есть эти зависимости

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'

....
}

я пробовал android:debuggable="true" в AndroidManifest, но не решил проблему

как я могу получить полную информацию об ошибке?

1 Ответ

1 голос
/ 08 мая 2020

В вашем файле build.gradle (:app) убедитесь, что minifyEnabled равно false.

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

(Установите true при выпуске в publi c (например, Google Play Store ) для обфускации.)

...