Connect your Android project to GlitchTip

Configure your Gradle file

In your top-level build.gradle file, make sure that Maven Central is added as a repository:

repositories {

In your app/build.gradle file, make sure that you're targeting Java 1.8 (8) compatibility:

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8

Then, add sentry-android into your dependencies:

dependencies {
    implementation 'io.sentry:sentry-android:4.2.0'

For other dependency managers, see the central Maven repository.

Configure your Android manifest

Add this <meta-data> tag inside the <application> element of your AndroidManifest.xml file:

  <meta-data android:name="io.sentry.dsn" android:value="YOUR-GLITCHTIP-DSN-HERE" />

Send us an error!

Open up, and throw an exception:

import android.os.Bundle;

import java.lang.Exception;
import io.sentry.Sentry;

public class MainActivity extends AppCompatActivity {
  protected void onCreate(Bundle savedInstanceState) {
    try {
      throw new Exception("Hello, GlitchTip!");
    } catch (Exception exception) {