Splunk AppDynamics

DexArchiveBuilderException when building APK with Ionic + Cordova

CommunityUser
Splunk Employee
Splunk Employee

I am getting this error when I try to do the dynamis app installation procedure, after trying to generate the apk build ..
The requirements are ok.

**Environment Info:**

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
@ionic/app-scripts : 3.1.11
Cordova Platforms : none
Ionic Framework : ionic-angular 3.5.3
System:
Android SDK Tools : 26.1.1
Node : v8.11.3
npm : 6.4.0
OS : Windows 10


**Error:**

> com.android.builder.dexing.DexArchiveBuilderException: Failed to
> process
> ..platforms\android\build\intermediates\transforms\AppDynamics\debug\36
> com.android.builder.dexing.DexArchiveBuilderException: Error while
> dexing
> org/apache/cordova/inappbrowser/InAppBrowser$InAppBrowserClient.class
> com.android.dx.cf.code.SimException: mismatched stack depths

The 'AppDynamics BCI Instrumentation' log seems to be ok.

- Total number of classes visited (#3773 classes)
- Total number of classes instrumented (#39 classes)
- Total number of classes failed to instrument (#0 classes)
- Total number of features discovered (#6)

The following features were discovered in your application by Appdynamics:
- Network calls using Square's OkHttp (#2 classes)
- Inject JS agent into WebView (#1 classes)
- Detect Application not responding (#6 classes)
- Network calls using apache's HttpClient (#1 classes)
- Network calls using java.net.HttpURLConnection (#11 classes)
- Detect calls from View (#20 classes)

Labels (1)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

After a lot of builds, adding and removing cordova, cleaning modules, this error stopped. 

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

After a lot of builds, adding and removing cordova, cleaning modules, this error stopped. 

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...