google play上架操作

最近需要上传到google play市场,需求是从腾讯加固下载,重新签名后上传google play。

使用普通的打包方式上传不成功,需要用到以下步骤:

 

加固后步骤:

1、重新签名

jarsigner -verbose -sigalg SHA1withDSA -digestalg SHA1 -keypass 密码 -storepass 密码 -keystore xxxxxxx.keystore 20200519_jiagu1130.apk 别名

 

2、ziplink D:\Android\SDK\build-tools\29.0.2 目录下cmd操作

zipalign -v 4  20200519_jiagu1130.apk 20200519_jiagu1130_ziplink.apk

 

这样apk就可以正常上传了

 

还要一些要注意的问题:

1、必须支持64位

2、

如果WebView重写了onReceivedSslError方法:

使用这个:

public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {

                final SslErrorHandler mHandler ;

                mHandler= handler;

                AlertDialog.Builder builder = new AlertDialog.Builder(activity);

                builder.setMessage("ssl证书验证失败");

                builder.setPositiveButton("继续", new DialogInterface.OnClickListener() {

                    @Override

                    public void onClick(DialogInterface dialog, int which) {

                        mHandler.proceed();

                    }

                });

                builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {

                    @Override

                    public void onClick(DialogInterface dialog, int which) {

                        mHandler.cancel();

                    }

                });

                builder.setOnKeyListener(new DialogInterface.OnKeyListener() {

                    @Override

                    public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {

                        if (event.getAction() == KeyEvent.ACTION_UP && keyCode == KeyEvent.KEYCODE_BACK) {

                            mHandler.cancel();

                            dialog.dismiss();

                            return true;

                        }

                        return false;

                    }

                });

                AlertDialog dialog = builder.create();

                dialog.show();

            }

3、高德地图要用指定的sdk

4、bugly要用指定的sdk

5、科大讯飞要用指定的sdk

你可能感兴趣的:(Android实例)