Integrate Luciq on Android

This page covers how to install the Luciq SDK in your Android application.

Compile SDK Version

Installation

This installation process will install the Luciq SDK that supports Bug Reporting, Crash Reporting and App Performance Monitoring.

Gradle

Add this line to your build.gradle file.

implementation 'ai.luciq.library:luciq:18.0.0' 

Maven

<dependency>
      <groupId>ai.luciq.library</groupId>
      <artifactId>luciq</artifactId>
      <version>18.0.0</version>
</dependency>

Using Luciq

In your Application class add this line to your onCreate method. This initializes Luciq with the default invocation event, Shake.

Luciq.Builder(this, "APP_TOKEN").build()

Initializing Luciq in your application can also be done using one or multiple invocation events. All possible invocation events are explained in the invocation section.

You can find your app token by selecting SDK Integration in the Settings menu of your Luciq dashboard.

Permissions

Permissions are automatically added to your AndroidManifest.xml file. Some of them are required to be able to fetch information like network and WiFi connection. Others are used to allow your users to attach images, videos, and audio recordings. In general, permission requests don't appear unless your user attempts to use a feature requiring a permission.

The only exception is if you set the invocation event to be a Screenshot. In that case, the storage permission will be requested when your application launches. The screenshot invocation is a special case because there is no native event that tells the SDK that a screenshot has been captured. The only way to know is to monitor the screenshots directory. The SDK is invoked when a screenshot is added to the directory while your application is active.

You can remove any of the permissions if you will not be using the feature associated with it, as in the following example.

Required Permissions

16KB Compatibility

From Android 15 (API 35), native (.so) libraries must support 16KB page sizes. Luciq supports this starting from version 13.4.0. Please upgrade if your app targets Android 15+ to avoid crashes. Learn more.

Last updated