Comments (5)
是不是buildfeatures没有配置,AGP 8.0之后要加上这个配置,readme我刚刚更新了
from stringfog.
buildConfig = true 这个配置我是加了, 刚才去掉引用本地库//mavenLocal() 在线更新了5.0.0的库
以上问题还是存在,不生成StringFog这个解密类,但是里面的字符串是加密的,找不到解密类
重新编译会提示mWriter.newLine() 为null,要退出studio再进才可以编译
编译一次成功后,再clean工程提示app\build\outputs\mapping\debug\stringfog.txt无法被清
from stringfog.
我升级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.
buildConfig = true 这个配置我是加了, 刚才去掉引用本地库//mavenLocal() 在线更新了5.0.0的库 以上问题还是存在,不生成StringFog这个解密类,但是里面的字符串是加密的,找不到类解密 重新编译会提示mWriter.newLine() 为null,要退出studio再进才可以编译 编译一次成功后,再clean工程提示app\build\outputs\mapping\debug\stringfog.txt无法被清
from stringfog.
更新了5.1.0,这些问题应该都不存在了。
from stringfog.
Related Issues (20)
- aspectjx 冲突加密不生效
- gradle8.0提示Namespace not specified
- 请求扩展提供对已经编译好的Dex或者jar 文件进行字符串加密。 HOT 1
- 领袖 我用的5.0版本的,Gradle8.0, AGP 7.4 , 构建的时候提示Missing file HOT 1
- com.github.megatronking.stringfog.plugin.kg.RandomKeyGenerator 为啥导入不了 HOT 1
- 这是什么原因
- 5.0是对android studio 版本有什么要求吗
- 部分字段无法加密 HOT 2
- debug包正常,release包static String的变量初始值丢失问题 HOT 4
- JDK11 ArrayIndexOutOfBoundsException HOT 3
- gradle8.0以下问题 HOT 2
- How to decrypt?
- java 17 compileSdk 34 报错 HOT 2
- AGP7.1.3,按照主页的文档配置好,sync后报错如下
- 注解的字符串不会被加密
- build.gradle.kts DSL 怎么接入 HOT 2
- 5.1.0不能同时对app module和lib module同时加密
- 空字符加密
- 4.0.1+Gradle7.2.2 无法生成加密后的APK
- (PermittedSubclasses requires ASM9) - java 17 compileSdk 34 kotlin 1.9.20 agp 8.2.0, gradle-8.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stringfog.