Skip to content

Latest commit

 

History

History

anr_plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Unity ANR Plugin

The Unity ANR Plugin provides the access to the following APIs from Android SDK:

  1. ApplicationExitInfo to diagnose crashes and ANRs for Unity 2022 and older
  2. StrictMode to identify and prevent ANRs/deadlocks caused by I/O operations on the Main Thread
  3. Polling the memory stats for Unity 2021 and older

This will help you to diagnose your ANRs, on Unity versions 2022 and less. From Unity 2023, this functionality is already integrated into Unity.

Step 1: Run the sample

Open the project in the unity-anr-project folder in your Unity Editor, inspect the code and run the project.

Step 2: (Optional) Build the plugin in Android Studio

Open the project in the unity-anr-plugin folder in your Android Studio.

License

anr_plugin is distributed under the terms of the Apache License (Version 2.0). See the license for more information.