Play Store: Can't install app, (Error code: -1

2019-01-23 13:29发布

问题:

Yesterday I published my app in Play Store. All went well till today. When I try to install my app from Play Store, it downloads it but when installing it it says:

"My_application" can't be installed. Try again, and if the problem continues, get troubleshooting. (Error code: -103)

I tried installing on multiple devices.

Edit: On some devices it goes through installation process as it should and all goes well.

On others it gives the above error message.

回答1:

Older Android devices are unable to recognize SHA256 hash funcitons. Adding:

-sigalg SHA1withRSA -digestalg SHA1

as parameters to jarsigner should solve the issue even when using JDK 1.8.



回答2:

As @mladen-gavrić comment his own question, downgrade to java JDK version 1.6. solves the issue.

SE with $ java -vwith version is currently running which will output something like the following:

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

See this excellent answer how to downgrade with the JDK 1.6. already installed previously: https://stackoverflow.com/a/24657630/2797243



标签: google-play