We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:Execution failed for task ':app:transformClassesWithStringFogForDebug'.
java.util.zip.ZipException: attempt to write past end of STORED entry
classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.android.tools.build:gradle-experimental:0.11.0' classpath 'com.github.megatronking.stringfog:gradle-plugin:1.4.0'
implementation 'com.github.megatronking.stringfog:lib:1.2.2'
The text was updated successfully, but these errors were encountered:
初步定为到是Java 8导致的问题。AS在编译的时候会进行脱糖(desugar)操作,将lambda的语法糖还原,这一步发生在stringFog处理字节码之前,导致后面的stringFog时处理jar文件异常(有点随机性,尚不确定具体原因)。这个问题修复还需要一些时间,如果紧急的话可以选择下面两个方式其中之一规避:
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
Sorry, something went wrong.
好的
问题已经完全定位并解决,AS对desugar时生成的jar包的压缩方式做了修改,stringFog使用此jar包解压文件再进行字节码加密后重新jar包时会有问题。稍后会发布1.4.1版本,修复此问题。
Fixed java 8 compile issue #12
fe513c6
No branches or pull requests
Error:Execution failed for task ':app:transformClassesWithStringFogForDebug'.
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle-experimental:0.11.0'
classpath 'com.github.megatronking.stringfog:gradle-plugin:1.4.0'
implementation 'com.github.megatronking.stringfog:lib:1.2.2'
The text was updated successfully, but these errors were encountered: