Skip to content
New issue

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

混淆后release编译不通过 #28

Open
xuhuanli opened this issue Mar 29, 2021 · 0 comments
Open

混淆后release编译不通过 #28

xuhuanli opened this issue Mar 29, 2021 · 0 comments

Comments

@xuhuanli
Copy link

版本已经升到最新了 官方文档也重新对了一遍

// 友盟统计
api 'com.umeng.umsdk:common:9.3.7' // 必选
api 'com.umeng.umsdk:asms:1.2.1' // 必选
api 'com.umeng.umsdk:apm:1.1.1' // U-APM产品包依赖(必选) APP性能监控产品

友盟

-keep class com.umeng.** {*;}
-keepclassmembers class * {
public (org.json.JSONObject);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

您如果使用了稳定性模块可以加入该混淆

-keep class com.uc.** {;}
-keep public class 改成我的包名.R$
{
public static final int *;
}

报错

com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: Text range from: 'offset: 768, line: 24, column: 1', to: 'offset: 783, line: 24, column: 16', origin: /Users/xhl/.gradle/caches/transforms-2/files-2.1/1f9180c320376284034305cf9df29765/jetified-asms-1.2.1/proguard.txt

-repackageclass com.umeng.umzid.pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant