tinker
tinker copied to clipboard
tinker不支持m1芯片SevenZip-1.2.20-osx-aarch_64.exe,造成无法编译。
Issue/提问须知
你好,在编译时报找不到远程SevenZip-1.2.20-osx-aarch_64.exe,经发现是Jcenter并没有支持的m1芯片的资源文件,麻烦官网可否支持一下支持m1芯片(MacBook Pro)的资源。 ` FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring project ':qxapp'.
Could not resolve all files for configuration ':qxapp:AndResGuardLocatorSevenZip'. Could not find SevenZip-osx-aarch_64.exe (com.tencent.mm:SevenZip:1.2.20). Searched in the following locations: https://jcenter.bintray.com/com/tencent/mm/SevenZip/1.2.20/SevenZip-1.2.20-osx-aarch_64.exe
`
经查JCenter地址:https://jcenter.bintray.com/com/tencent/mm/SevenZip/1.2.20/下面
SevenZip-1.2.20-javadoc.jar
SevenZip-1.2.20-linux-x86_32.exe
SevenZip-1.2.20-linux-x86_64.exe
SevenZip-1.2.20-osx-x86_64.exe
SevenZip-1.2.20-sources.jar
SevenZip-1.2.20-windows-x86_32.exe
SevenZip-1.2.20-windows-x86_64.exe
SevenZip-1.2.20.jar
SevenZip-1.2.20.pom
发现并无SevenZip-1.2.20-osx-aarch_64.exe版本,希望官方能支持一下
异常类型:编译异常
手机型号:无
手机系统版本:无
tinker版本:如:1.7.7
gradle版本:如:6.10
是否使用热更新SDK: 如 TinkerPatch SDK 或者 Bugly SDK
系统:如:MacBook Pro M1 chip
还没更新吗
mac和liunx自己命令行安装7za压缩软件,然后gradle里面屏蔽掉artifact = 'com.tencent.mm:SevenZip:1.2.13,这玩意只考虑过win开发,没考虑linux系统
或者加个判断
def isWindows() {
return org.gradle.internal.os.OperatingSystem.current().isWindows()
}
sevenzip {
if (isWindows()) {
artifact = 'com.tencent.mm:SevenZip:1.2.13'
}
}