Jay-Goo / ProtectedApkResignerForWalle

[Walle WiKi官方推荐]一步解决应用加固导致Walle渠道信息失效的自动化脚本工具,自动生成渠道包
Apache License 2.0
568 stars 113 forks source link

window10测试,报错 #9

Closed KobeBryant824 closed 6 years ago

KobeBryant824 commented 6 years ago

//用腾讯乐固加固,加固前已经签名,keystore已经放在桌面了 Verification succesful Failed to load signer "signer #1" java.io.FileNotFoundException: ?C:\Users\a-Hai\Desktop\release.keystore (文件名、目录名或卷标语法不正确。) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at com.android.apksigner.ApkSignerTool$SignerParams.loadKeyStoreFromFile(ApkSignerTool.java:733) at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:636) at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCerts(ApkSignerTool.java:580) at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSignerTool.java:534) at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:229) at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:87) {"ret":-1,"msg":"get signature failed, File:E:\Android\app\ProtectedApkResignerForWalle\app-release_legu_aligned_signed.apk Not Found"} java.io.FileNotFoundException: Source 'E:\Android\app\ProtectedApkResignerForWalle\app-release_legu_aligned_signed.apk' does not exist at org.apache.commons.io.FileUtils.checkFileRequirements(FileUtils.java:1405) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1072) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1040) at com.meituan.android.walle.commands.BatchCommand.generateChannelApk(BatchCommand.java:80) at com.meituan.android.walle.commands.BatchCommand.parse(BatchCommand.java:65) at com.meituan.android.walle.Main.main(Main.java:51)

KobeBryant824 commented 6 years ago

!/usr/bin/python

--coding:utf-8--

已经添加了转义字符了,github自动转换了

keystore信息

Windows 下路径分割线请注意使用\转义

keystorePath = "‪C:\Users\a-Hai\Desktop\release.keystore" keyAlias = "testres" keystorePassword = "testres" keyPassword = "testres"

加固后的源文件名(未重签名)

protectedSourceApkName = "app-release_legu.apk"

Android SDK buidtools path , please use above 25.0+

sdkBuildToolPath = "E:\Android\Sdk\build-tools\25.0.3"

JinJieGu commented 6 years ago

亲测没问题,看log是你的签名文件路径的问题,请确认你的路径无误,保证你粘贴路径不带任何格式

KobeBryant824 commented 6 years ago

路径前多了个?号,是编码格式问题,现在可以拿到聚道了

marren06 commented 4 years ago

@KobeBryant824 怎么拿到的? 我的一直报错 获取签名失败
image

签名文件路径各种方法都试了 还是不行