First, verify your application bundle version and java versions are matched with flutter_acpanalytics integrations.
This version dependence also creates some issues, resolve the issues first
then ensure your application is imported packaged and added the dependency in the application bundle.
import 'package:flutter_acpanalytics/flutter_acpanalytics.dart';
Follow the implementation guide and reference examples:
https://pub.dev/packages/flutter_acpanalytics/install
https://pub.dev/packages/flutter_acpanalytics/example
We have developed based on instructions with native apps and working fine, some time when we tried it with updated bundle, java version issue create the issues.
Sample:
import com.adobe.marketing.mobile.Identity;
protected void onCreate(Bundle savedInstanceState) {
try{
Identity.registerExtension();
MobileCore.start(new AdobeCallback () {
@Override
public void call(Object o) {
MobileCore.configureWithAppID("Adobe Property Id");
}
} catch (InvalidInitException e) {
e.printStackTrace();
}