App keeps crashing when Android profiler is used

后端 未结 5 1458
孤街浪徒
孤街浪徒 2021-01-31 06:54

My app is doing some location tracking and update database when needed, the app has been running 2 days without having any issue. And now I am trying to use the Android Profiler

相关标签:
5条回答
  • 2021-01-31 07:29

    use this code

    button2 = (Button) findViewById(R.id.button2);

    0 讨论(0)
  • 2021-01-31 07:31

    It perhaps an android studio profile bug. Delete the whole codecache directory in your application data package root path(data/data/pacakge_name/codecache) and retry profile again.

    0 讨论(0)
  • 2021-01-31 07:45

    Is your app a fairly sizable project with a large number of classes, potentially with some custom class loader logic?

    Once you are able have the steps to reproduce the crash, you can use a tool like logcat to get more information.

    https://developer.android.com/studio/command-line/logcat.html

    0 讨论(0)
  • 2021-01-31 07:47

    signal 6 (SIGABRT), code -6 (SI_TKILL) means the abort was deliberate.

    This issue seems to be related: Profiler crashes in libperfa_arm64.so

    0 讨论(0)
  • 2021-01-31 07:53

    In Android Studio 4.0 (or higher), the following is the navigation to avoid crashes when running with profiler:

    1. From menu click on "Run"
    2. Profile 'app'
    
    0 讨论(0)
提交回复
热议问题