Project Packaging-Build a Release build
1. Menu build = Generate signed APK ...
2. Set the signature to save the directory, password and other information
3. Remember the password and next
4. Select apk save path, Finish.
Publishing error issues and workarounds:
P1. Publish hint error issue, fragment used in construction method passed parameters. Tip To avoid passing parameters in the fragment construction method, you should use Setarguments (Bundle) to pass the parameters. Studio version release prompts the problem, the program can run normally, add the Ignore prompt code in Gradle.app.
Workaround:
Formal packaging to avoid prompting SHARESDK error hints
lintoptions{
Abortonerror false;
}
P2. The release version conflicts with the debug version signature and the APK cannot be installed. After you publish the signature version, you cannot manually install it to a previously installed debug version of the phone, you need to manually uninstall and then reinstall.
Workaround: Reinstall after manual uninstallation
Androidstudio version released