cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Api AppDynamics Agent doesn't work on MAUI

Lucio.Ortiz
Creator

Hi,

After installing the appdynamics agent API in MAUI on Visual Studio 2022 Preview the project does not compile but in xamarin.forms it does.

The error it gives me is this:

Error AMM0000 Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml:24:18-86 is also present at AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).Suggestion:add'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:12:3-29:17 to override.

I already tried to put tools:replace="android:appComponentFactory" in of the android manifest, also added xmlns:tools="schemas.android.com/tools" in for tools to work.

But nothing worked, the same error appeared.

Thanks.

2 REPLIES 2

Sergiu.Cosmin
Producer

Hello,

MAUI support was added in September 2022 with v. 2022.9.0. The package to be used is under a different name "AppDynamics.Agent.Maui" and it can be found here: https://www.nuget.org/packages/AppDynamics.Agent.Maui 

Thanks! 

Maxime.Esprit
New Member

Hello,

Thanks for providing a nuget for MAUI.

I encounter an error with iOS simulator on Mac M1.

It looks like the architecture for iOS simulator on Mac M1 chip is missing in the iOS binding project : 

clang++ exited with code 1:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ADEumAgentConfiguration", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumCrashReportSummary", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumHTTPRequestTracker", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumInstrumentation", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumServerCorrelationHeaders", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumSessionFrame", referenced from:
objc-class-ref in registrar.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) (MyApplication.MAUI)

 

It works for Android.

It works for iOS on a physical device

It works for iOS on a simulator on a Mac with Intel processor

But it does not work for iOS on a simulator on a Mac with M1 chip.

I have reported it on Stackoverflow : https://stackoverflow.com/questions/76618970/appdynamics-agent-for-maui-symbol-not-found-for-archite...