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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...