The problem that Android Studio cannot be installed after packaging the release version

Today, I encountered a very strange problem when packaging the application. After a long time, I still haven't solved it. Finally, I found a solution on stack overflow.

Description of the problem: 
The release version is packaged through Generate Signed APK on Android Studio 2.3. The packaging process goes well. When I was about to play happily, something depressing came. 
As soon as the installation prompts that the installation fails, a big red cross appears directly as soon as you click install. But if it is a packaged debug version, there is no such problem. Then I found the reason and tried various methods, but to no avail.

No way, only Google, and finally found a solution on stack overflow. There should be some people who encounter this problem. In fact, it is a pit of Android Studio. Just pay attention to it in the future.

The specific method is that when you choose the signature version in the second step of packaging, the two V1 and V2 versions must be selected. I only chose V2 at the beginning, because it reads Full APK Signature in the brackets. ,,, I thought that since it is full, it should be no problem, but the result was miserable. 

I'm complaining here, since you can't install it if you don't choose the first one, why do you have to create a multi-select box that is not selected by default and let people choose? It's a fool!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325441741&siteId=291194637