# Disabling/Enabling Crash Reporting

Luciq Crash Reporting can be disabled with the following method. This will completely prevent any crash report from being sent to your dashboard.

{% code title="Dart" %}

```dart
CrashReporting.setEnabled(false);
```

{% endcode %}

## NDK Crashes

If your Flutter app uses C++ libraries or NDK code, the Luciq SDK can capture native crashes that occur at the C++ level.

### Adding the NDK Dependency

Add the NDK crash reporting dependency to your Android app-level `build.gradle`:

{% code title="Gradle" %}

```gradle
dependencies {
    implementation 'com.luciq.library:luciq-ndk-crash:+'
}
```

{% endcode %}

### Enabling NDK Crash Reporting

NDK crash reporting is disabled by default. Enable it after SDK initialization:

{% code title="Dart" %}

```dart
CrashReporting.setNDKCrashesEnabled(true);
```

{% endcode %}

### Deobfuscation

Native crash stack traces require symbol files for readability. Upload your `.so` files to deobfuscate NDK crashes. See the [Android NDK deobfuscation guide](https://docs.luciq.ai/android/set-up-luciq-for-android/set-up-crash-reporting/deobfuscation-for-android#deobfuscating-ndk-c-crashes) for details.

### Requirements

* Android API level 21+
* Crash reporting must be enabled

> **Note:** If NDK crashes aren't appearing after setup, contact [support](https://help.luciq.ai/en/) to verify the feature is enabled for your app.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.luciq.ai/flutter/setup-luciq-for-flutter/setup-crash-reporting/disabling-enabling-crash-reporting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
