Tag Archives: apk

AVD prompt Error:Could not Parse error string solution

Error:Could not parse Error String solution
Solution to the cause of the problem

The problem
Today, when installing APK into AVD, I found the virtual machine prompts installation failed:
The APK failed to install.
Error: Could not parse error string
The reason for this error is also unclear. At first, I thought it was just the installation package, but it didn’t work after three or four installation packages. I checked the API version and SDK version and found no problem, and it was running normally on the real machine.

The reasons causing
To get the best speed out of AVD, AS often recommends using the same CPU architecture AS your PC when installing AVD, which defaults to x86 architecture, while APK USES ARM architecture, which creates incompatibility.
When installing in a terminal, use the following command:
adb install path_to_your_app/name_of_your_app.apk
You may see the following error:
adb: failed to install name_of_your_app.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: failed to extract native libraries
The solution
1. Apk can be installed by installing an ARM-based AVD in AS (but the virtual machine is very, very card).

2. If you are compiling the program, you can change the program to x86 in the option, which can also run in the virtual machine.

com.android.ddmlib.AdbCommandRejectedException: device offline Error while Installing APK (How to Fix)

com.android.ddmlib.AdbCommandRejectedException:device offline
Error while Installing APK

The problem is that ADB is killed, just restart it
There are three ways:
1. Plattform-tools can be found in the SDK file, and adb can be found in this folder.
Double-click ADB to restart it

Second, you can also perform a two-step command operation in CMD:
1, the adb kill server
2, the adb start – server

Restart the computer

— —
copyright notice: this article is the original article of CSDN blogger “shenshizhong”, in accordance with CC 4.0 by-sa copyright agreement, please attach the source link and this statement.

Installation error: install_ FAILED_ VERSION_ DOWNGRADE

1. Problem tip

2. Solution

is because you have installed an application with the same package name on your phone or emulator, and the current versionCode you are running is less than the versionCode of the application you have installed, so you will be prompted that the installation fails!

solution:

1. Uninstall the Apk that has been installed before.

2. Raise the value of android:versionCode in the manifest profile!

resources: http://stackoverflow.com/questions/13808599/android-emulator-installation-error-install-failed-version-downgrade