Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apk cannot be installed in genymotion simulator

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

First, the reason why genymontion cannot install apk

Genymotion is an Android simulator based on x86 architecture, and most of the applications are arm architecture. So the two are not compatible.

For x86 real machines, x86 processors are basically compatible with ARM instructions. For Genymotion simulators, compatibility is achieved by installing Genymotion-ARM- translations. Install Genymotion-ARM-Translation.zip into the Genymotion simulator. The package is currently supported on android sdk API26, the android 8.0.0 system.

It is not possible for genymotion to use Genymotion-ARM-Translation.zip files, and each Android version corresponds to a different version of the ARM instruction set, that is, libhoudini.so is required by the Android version.

The cpu architecture of android9.0 in avd manager is also x86.

Second, the reason why genymotion-arm-translation cannot be installed

Because there is no administrator permission in Win10 or in some cases, it is impossible to drag and drop, or drag and drop becomes copy, or drag becomes copy but is invalid.

Third, cannot install genymotion-arm-translation solution:

1. Enter the platform-tools folder in the android sdk installation directory, type cmd in the address bar, and open a command line window.

2. Import the file into the / sdcard/Download/ directory of the simulator, enter and execute adb push E:\ Genymotion-ARM-Translation_v1.1.zip / sdcard/Download/,. Note that the path is case-sensitive.

3. The prompt "1 file pushed" indicates that the import is successful.

4. Enter and execute adb shell flash-archive.sh / sdcard/Download/Genymotion-ARM-Translation_v1.1.zip

5. Finally, "Done successfully!" appears, indicating that the installation is successful.

6. Restart the simulator

4. Make sure that the libhoudini.so file you brushed is correct.

1. When installing arm apk through adb install, such as installing wechat, if terminal has the following error:

WARNING: linker: libhoudini.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

This means that the version of the libhoudini.so file is not correct.

2. After installing APK, APK cannot run.

3. After brushing the above Genymotion-ARM-Translation.zip, you also need to brush Gapps (https://opengapps.org/)) yourself.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report