diff --git a/packages/plugins/rudder_plugin_android/android/src/main/java/com/rudderstack/sdk/flutter/RudderSdkFlutterPlugin.java b/packages/plugins/rudder_plugin_android/android/src/main/java/com/rudderstack/sdk/flutter/RudderSdkFlutterPlugin.java index 37c901c3..7da472ec 100644 --- a/packages/plugins/rudder_plugin_android/android/src/main/java/com/rudderstack/sdk/flutter/RudderSdkFlutterPlugin.java +++ b/packages/plugins/rudder_plugin_android/android/src/main/java/com/rudderstack/sdk/flutter/RudderSdkFlutterPlugin.java @@ -241,7 +241,7 @@ public RudderConfig getRudderConfig(Map configMap) { Boolean enabled = (Boolean) dbEncryptionMap.get("enabled"); String encryptionKey = (String) dbEncryptionMap.get("key"); if(enabled && encryptionKey!=null && encryptionKey.length() > 0) { - builder.withDBEncryption(RudderConfig.DBEncryption(enabled, encryptionKey)); + builder.withDbEncryption(new RudderConfig.DBEncryption(enabled, encryptionKey)); } }