moosphan / app-code-obfuscation Goto Github PK
View Code? Open in Web Editor NEWAndroid plugin code obfuscation tool, based on ASM, implants meaningless code during compilation.
License: Apache License 2.0
Android plugin code obfuscation tool, based on ASM, implants meaningless code during compilation.
License: Apache License 2.0
大佬,我下载仓库里的运行不了,错误:org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'cn.dorck.code.guarder', artifact: 'com.dorck.android:code-guard-plugin:0.1.0-LOCAL'] was not found in any of the following sources:
设置了genClassCount属性后,打包报错提示:Required: SUB_PROJECTS, EXTERNAL_LIBRARIES. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS
e.g, 类中生成了 void try() {}
方法
codeGuard {
//开启插件
enable = true
maxMethodCount = 26
maxFieldCount = 26
maxCodeLineCount = 26
generatedMethodCount = 26
genClassCount = 26
}
多次打包有时候会报错,目前第一次打包即使不开混淆打包出来运行会闪退,我反编译看是报错提示找不到的包名和类丢失了,我下载仓库demo打包运行也一样,报错日志:java.lang.NoClassDefFoundError: Failed resolution of: Lcn/xcolyu/kceurni/l/d/w/h/Xl;
at cn.xcolyu.kceurni.bc.onCreate(Unknown Source:4)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1236)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6971)
at android.app.ActivityThread.access$1600(ActivityThread.java:259)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2127)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7901)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
Caused by: java.lang.ClassNotFoundException: Didn't find class "cn.xcolyu.kceurni.l.d.w.h.Xl" on path: DexPathList[[zip file "/data/app/cn.xcolyu.kceurni-uXo3xuB3gg8sIv4E-cEYhw==/base.apk"],nativeLibraryDirectories=[/data/app/cn.xcolyu.kceurni-uXo3xuB3gg8sIv4E-cEYhw==/lib/arm64, /system/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at cn.xcolyu.kceurni.bc.onCreate(Unknown Source:4)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1236)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6971)
at android.app.ActivityThread.access$1600(ActivityThread.java:259)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2127)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7901)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
2024-01-09 13:56:44.057 32630-32630 AndroidRuntime cn.xcolyu.kceurni E FATAL EXCEPTION: main
Process: cn.xcolyu.kceurni, PID: 32630
java.lang.NoClassDefFoundError: Failed resolution of: Lcn/xcolyu/kceurni/z/c/t/Zd;
at cn.xcolyu.kceurni.bc.onCreate(Unknown Source:5)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1236)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6971)
at android.app.ActivityThread.access$1600(ActivityThread.java:259)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2127)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7901)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
Caused by: java.lang.ClassNotFoundException: Didn't find class "cn.xcolyu.kceurni.z.c.t.Zd" on path: DexPathList[[zip file "/data/app/cn.xcolyu.kceurni-wDnYiGPgRyC6j945qojAkA==/base.apk"],nativeLibraryDirectories=[/data/app/cn.xcolyu.kceurni-wDnYiGPgRyC6j945qojAkA==/lib/arm64, /system/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
I have imported the plugin as follows in plugins section.
plugins{
id("cn.dorck.component.publisher") version "1.0.4"
}
but i do not know how to do other things, can you write step by step code in order to use in my code. I am a newbie and needs your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.