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!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...