Tencent/matrix错误:Cause: need sign apk but apksigner *\Sdk/build-tools/28.0.2/apksigner was not exist!
Tencent/matrix的演示例子中编译都通过,但是安装失败,失败提示消息:
Cause: need sign apk but apksigner *\Sdk/build-tools/28.0.2/apksigner was not exist!
意思是找不到apksigner文件,看了我自己的28.0.2包里面,有apksigner文件,但是该文件是apksigner.bat
在app的build.gradle文件里面把:
apksignerPath = "${android.getSdkDirectory().getAbsolutePath()}/build-tools/${android.getBuildToolsVersion()}/apksigner"
修改补全apksigner为apksigner.bat即可:
apksignerPath = "${android.getSdkDirectory().getAbsolutePath()}/build-tools/${android.getBuildToolsVersion()}/apksigner.bat"