Eino Gourdin
Eino Gourdin

Reputation: 4507

Deployment failed because of an internal error: Failure [INSTALL_FAILED_DEXOPT]

I'm building an application with Xamarin, but when trying to run it on this (physical) device (Wiko Enspert Rainbow) in Debug mode, the installation fails with a "Deployment Failed - INSTALL_FAILED_DEXOPT" error.

I get the following log in "Deploying to device" window :

Deploying package to '0123456789ABCDEF'

Detecting installed packages

Waiting for packaging to complete

Installing application on device

Deployment failed because of an internal error: Failure [INSTALL_FAILED_DEXOPT]

Deployment failed. Internal error.

In Release, the installation works. Also, I have enough space on the phone.

I've tried to remove Mono Shared Runtime, and Xamarin.Android Api-23 support lib (as well as obviously the Release version of the app). Tried to clean and rebuild ; reboot the phone... to no avail.

Does anyone have an idea ?

Thanks

Upvotes: 1

Views: 3803

Answers (2)

Alejandro Ruiz Varela
Alejandro Ruiz Varela

Reputation: 591

I dont know if this is your case but I was able to fix this by removing this 3 nuget packages from my project

Microsoft.Net.Http
Microsoft.Bcl
Microsoft.Bcl.Build

and reference Net.Http lib via References-All-System.Net.Http

Upvotes: 4

Eino Gourdin
Eino Gourdin

Reputation: 4507

I could "solve" the problem by deactivating "Use Shared Mono Runtime" (in Options -> Android Build -> General).

However it makes the install quite slow. There is probably a better solution somewhere.

Upvotes: 4

Related Questions