Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while uploading dependencies.apk : WARNING: linker: libhoudini.so has text relocations

I am using Android Studio 2.3 stable in Windows and while creating any new project and installing apk on emulator, I am getting this error and apk install fails.

Error while uploading dependencies.apk : WARNING: linker: libhoudini.so has text relocations. This is wasting memory and prevents security hardening. Please fix

How Can I solve the problem?

like image 430
rarahat02 Avatar asked Mar 03 '17 18:03

rarahat02


3 Answers

After trying to options given in this post and failure to get app installed. This problem is caused after updating Android Studio to Version 2.3 and Gradle to 3.3 (I have actually latest 3.4.1 so problem is not with Gradle version). I tried to disable "Instant Run" Feature of android studio and installation works like charm.

So go to

File>Settings>Build, Execution, Deployment> Instant Run

And then disable it. After that you will get working installation in GenyMotion as well.

Cheers!!!

like image 100
Qadeer A. Avatar answered Oct 01 '22 01:10

Qadeer A.


After some research, I found out that gradle 2.3.0 plugin has issue with ARM translator which I installed in my Genymotion emulator. And libhoudini.so is a proprietary ARM translation layer of emulator. That's why my installation of apk through Android Studio was failed with emulator. So, emulators without GApps will work.

like image 27
rarahat02 Avatar answered Oct 01 '22 01:10

rarahat02


After struggling with this issue for almost 27 hours. I found out that after updating my android studio and gradle it prompts you to enabling instant run on your projects. Therefore don't enabling instant run when prompted by android studio. As this results in the issue. There known bug instant Run bug on genymotion. Refer to Issue 233845: Instant Run could work on genymotion for more details.

like image 22
9it3e1 Avatar answered Sep 30 '22 23:09

9it3e1