In your application module's build.gradle file, do the following:
In the dependencies section, declare the logify-alert-android library dependency:
compile "com.devexpress.logify:logify-alert-android:1.0.2"
In the repositories section, declare the Logify Alert's maven repository:
maven {
url "https://github.com/DevExpress/Logify.Alert.Clients/raw/maven"
}
In the defaultConfig section, ensure that minSdkVersion is set to a value from 17 to 28.
In the pom.xml file, do the following:
In the dependencies section, declare the logify-alert-android library dependency:
<dependency>
<groupId>com.devexpress.logify</groupId>
<artifactId>logify-alert-android</artifactId>
<version>1.0.2</version>
</dependency>
In the repositories section, declare the Logify Alert's maven repository:
<repository>
<id>any-name-or-id</id>
<url>https://github.com/DevExpress/Logify.Alert.Clients/raw/maven </url>
</repository>
In the defaultConfig section, ensure that minSdkVersion is set to a value from 17 to 28.
import com.devexpress.logify.alert.android.LogifyAlert;
LogifyAlert client = LogifyAlert.getInstance();
client.setApiKey("YOUR_API_KEY");
client.setContext(this.getApplicationContext()); // Optional but recommended.
client.startExceptionsHandling();