Installation
- LastCrash is designed for Android 21+.
- In your project build.gradle file, add the following under allprojects -> repositories:
allprojects {
...
repositories { ... maven { url "https://mvn.lastcrash.io/releases" } }
}
- Then, add the following to your app build.gradle file, then sync your project:
implementation 'io.lastcrash:lastcrash-android:2.0.0'
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("androidx.lifecycle:lifecycle-runtime:2.7.0")
In the Android manifest for you app ensure the following permissions are granted:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />