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

DexArchiveBuilderException when building APK with Ionic + Cordova

Carlos.Gama
Builder

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)

1 REPLY 1

Carlos.Gama
Builder

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

Top Kudoed Authors