Giter VIP home page Giter VIP logo

Comments (5)

MegatronKing avatar MegatronKing commented on September 24, 2024

是不是buildfeatures没有配置,AGP 8.0之后要加上这个配置,readme我刚刚更新了

from stringfog.

ucxl avatar ucxl commented on September 24, 2024

buildConfig = true 这个配置我是加了, 刚才去掉引用本地库//mavenLocal() 在线更新了5.0.0的库
以上问题还是存在,不生成StringFog这个解密类,但是里面的字符串是加密的,找不到解密类
重新编译会提示mWriter.newLine() 为null,要退出studio再进才可以编译
编译一次成功后,再clean工程提示app\build\outputs\mapping\debug\stringfog.txt无法被清

from stringfog.

KamiNoYuki avatar KamiNoYuki commented on September 24, 2024

我升级5.0也遇到这个问题了,在buildFeatures添加了buildConfig = true也没用
以下是错误日志
Caused by: java.lang.NullPointerException: Cannot invoke "java.io.BufferedWriter.newLine()" because "this.mWriter" is null at com.github.megatronking.stringfog.plugin.StringFogMappingPrinter.output(StringFogMappingPrinter.java:77) at com.github.megatronking.stringfog.plugin.StringFogClassVisitor.encryptAndWrite(StringFogClassVisitor.java:256) at com.github.megatronking.stringfog.plugin.StringFogClassVisitor$3.visitLdcInsn(StringFogClassVisitor.java:216) at org.objectweb.asm.ClassReader.readCode(ClassReader.java:2421) at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1514) at org.objectweb.asm.ClassReader.accept(ClassReader.java:744) at org.objectweb.asm.ClassReader.accept(ClassReader.java:424) at com.android.build.gradle.internal.instrumentation.AsmInstrumentationManager.doInstrumentByteCode(AsmInstrumentationManager.kt:225) at com.android.build.gradle.internal.instrumentation.AsmInstrumentationManager.doInstrumentClass(AsmInstrumentationManager.kt:257) ... 36 more

from stringfog.

Sohoad avatar Sohoad commented on September 24, 2024

image
同样报错,兄弟有解决吗?

buildConfig = true 这个配置我是加了, 刚才去掉引用本地库//mavenLocal() 在线更新了5.0.0的库 以上问题还是存在,不生成StringFog这个解密类,但是里面的字符串是加密的,找不到类解密 重新编译会提示mWriter.newLine() 为null,要退出studio再进才可以编译 编译一次成功后,再clean工程提示app\build\outputs\mapping\debug\stringfog.txt无法被清

from stringfog.

MegatronKing avatar MegatronKing commented on September 24, 2024

更新了5.1.0,这些问题应该都不存在了。

from stringfog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.