Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.42k stars 807 forks source link

编译release报这个错是因为什么? #209

Closed wangjunhe closed 6 years ago

wangjunhe commented 6 years ago

当前gradle 3.0 版本 Caused by: java.lang.SecurityException: SHA1 digest error for org/bouncycastle/LICENSE.class at javassist.bytecode.ClassFile.read(ClassFile.java:801) at javassist.bytecode.ClassFile.(ClassFile.java:148) at javassist.CtClassType.getClassFile2(CtClassType.java:198) at javassist.CtClassType.getModifiers(CtClassType.java:407) at robust.gradle.plugin.asm.AsmInsertImpl.insertCode(AsmInsertImpl.java:54) at robust.gradle.plugin.RobustTransform.transform(RobustTransform.groovy:163) at com.android.build.api.transform.Transform.transform(Transform.java:288)

hedex commented 6 years ago

org/bouncycastle/LICENSE.class? 可以把这个class发给我看看吗? 不方便公开的话,请加我qq 514019824

wangjunhe commented 6 years ago

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) //

package org.bouncycastle;

public class LICENSE { public static String licenseText = "Copyright (c) 2000-2010 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) " + System.getProperty("line.separator") + System.getProperty("line.separator") + "Permission is hereby granted, free of charge, to any person obtaining a copy of this software " + System.getProperty("line.separator") + "and associated documentation files (the \"Software\"), to deal in the Software without restriction, " + System.getProperty("line.separator") + "including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, " + System.getProperty("line.separator") + "and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so," + System.getProperty("line.separator") + "subject to the following conditions:" + System.getProperty("line.separator") + System.getProperty("line.separator") + "The above copyright notice and this permission notice shall be included in all copies or substantial" + System.getProperty("line.separator") + "portions of the Software." + System.getProperty("line.separator") + System.getProperty("line.separator") + "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED," + System.getProperty("line.separator") + "INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR" + System.getProperty("line.separator") + "PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE" + System.getProperty("line.separator") + "LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR" + System.getProperty("line.separator") + "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER" + System.getProperty("line.separator") + "DEALINGS IN THE SOFTWARE.";

public LICENSE() { }

public static void main(String[] var0) { System.out.println(licenseText); } }

hedex commented 6 years ago

已经通过其他方法解决了,临时关闭,有需要的话再打开吧~

moremorefun commented 2 years ago

已经通过其他方法解决了,临时关闭,有需要的话再打开吧~

请问是如何解决的?