Skip to main content

Gradle Settings

Gradle Settings for Nuclei SDK

Please ensure the below configuration is present in the app level build.gradle file as shown in the example below.

  1. MultiDex is enabled

  2. Placeholder for NucleiTaskId is provided.

  3. Databinding is enabled

  4. Java 8 is enabled

android {
...
defaultConfig {
...
multiDexEnabled true
manifestPlaceholders = [nucleiTaskId: applicationId]

// If your application is single activity app, then set nucleiTaskId as below
manifestPlaceholders = [nucleiTaskId: "com.nuclei.sdk.<APP-NAME>"]
...
}
dataBinding {
enabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}