#1.基本指令区

#-optimizationpasses 5

-dontusemixedcaseclassnames

-dontskipnonpubliclibraryclasses

-dontskipnonpubliclibraryclassmembers

-dontpreverify

-verbose

-ignorewarning

-printmapping proguardMapping.txt

#-optimizations !code/simplification/cast,!field/,!class/merging/

-dontoptimize

-keepattributes Annotation,InnerClasses

-keepattributes Signature

-keepattributes SourceFile,LineNumberTable

#2.默认保留区

-keep public class * extends android.app.Activity

-keep public class * extends android.app.Application

-keep public class * extends android.app.Service

-keep public class * extends android.content.BroadcastReceiver

-keep public class * extends android.content.ContentProvider

-keep public class * extends android.app.backup.BackupAgentHelper

-keep public class * extends android.preference.Preference

-keep public class * extends android.view.View

-keep public class com.android.vending.licensing.ILicensingService

-keep class android.support.** {*;}

-keepclasseswithmembernames class * {

native ;

}

-keepclassmembers class * extends android.app.Activity{

public void (android.view.View);

}

-keepclassmembers enum * {

public static [] values();

public static ** valueOf(java.lang.String);

}

-keep public class * extends android.view.View{

*** get();

void set(**);

public (android.content.Context);

public (android.content.Context, android.util.AttributeSet);

public (android.content.Context, android.util.AttributeSet, int);

}

-keepclasseswithmembers class * {

public (android.content.Context, android.util.AttributeSet);

public (android.content.Context, android.util.AttributeSet, int);

}

-keep class * implements android.os.Parcelable {

public static final android.os.Parcelable$Creator *;

}

-keepclassmembers class * implements java.io.Serializable {

static final long serialVersionUID;

private static final java.io.ObjectStreamField[] serialPersistentFields;

private void writeObject(java.io.ObjectOutputStream);

private void readObject(java.io.ObjectInputStream);

java.lang.Object writeReplace();

java.lang.Object readResolve();

}

-keep class *.R$ {

*;

}

-keepclassmembers class * {

void (**OnEvent);

}

#3.webview

-keepclassmembers class fqcn.of.javascript.interface.for.webview {

public *;

}

-keepclassmembers class * extends android.webkit.webViewClient {

public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap);

public boolean *(android.webkit.WebView, java.lang.String);

}

-keepclassmembers class * extends android.webkit.webViewClient {

public void *(android.webkit.webView, jav.lang.String);

}

-keep class * extends android.database.sqlite.** { ; }

-keep class com.hyphenate.chat.EMChatDB {;}

-keep class com.hyphenate.chat.EMChatDB$* {

*;

}

-keep class com.hyphenate.chat.core.EMConnectionManager* {;}

-keepclassmembers class com.hyphenate.chat.core.EMDBManager${;}

-keepclassmembers class com.hyphenate.chat.core.EMMonitorDB${;}

#-keep class com.hyphenate.chat. {;}

-keep class com.hyphenate.chat.adapter.** {;}

-keep class internal.org.apache.http.entity.** {;}

-keep class org.apache.** {;}

-keep class com.superrtc.** {*;}

#-keep class com.hyphenate.easeui.** {*;}

-keep class com.hyphenate.analytics.** {*;}

-keep class com.hyphenate.chat.EMCursorResult

-keep class com.hyphenate.chat.EMPageResult

-keep class com.hyphenate.chat.EMGroupInfo

这个图片上传的是不是有问题 我看不到

打包可以试试切换到android项目后 在proguard-project加入混淆代码

support确保版本统一 如果有使用androidx 请将整个项目保持一致 不要和support混用

android 打包报错,android 打包报错,请问有没有好的解决办法相关推荐

  1. python的moviepy库 打包 报错: ‘moviepy.audio.fx.all‘ has no attribute ‘audio_fade 的解决办法

    本篇文章主要讲解python的moviepy库 打包 报错: 'moviepy.audio.fx.all' has no attribute 'audio_fade 的解决办法 日期:2022年3月9 ...

  2. oracle插入时间报错,Oracle 插入时间时 报错:ORA-01861: 文字与格式字符串不匹配 的解决办法...

    一.写sql的方式插入到Oracle中 往oracle中插入时间  '2007-12-28 10:07:24' 如果直接按照字符串方式,或者,直接使用to_date('2007-12-28 10:07 ...

  3. Pycharm报错:AttributeError: ‘NoneType‘ object has no attribute ‘_gdal‘的解决办法

    Pycharm报错:AttributeError: 'NoneType' object has no attribute '_gdal'的解决办法 解决办法如下: pycharm找到settings ...

  4. ajax上传文件报错The current request is not a multipart request的解决办法

    ajax上传文件报错The current request is not a multipart request的解决办法 主要报错语句为: The current request is not a ...

  5. form编译报错:ORA-12162: TNS:net service name is incorrectly specified解决办法

    form编译报错:ORA-12162: TNS:net service name is incorrectly specified解决办法 编译命令 apps/apps密码后面+"@数据库i ...

  6. navicat for mysql执行sql语句报错: [Err] 1146 - Table ‘performance_schema.session_status‘doesn‘t exist 解决办法

    navicat for mysql执行sql语句报错: [Err] 1146 - Table 'performance_schema.session_status' doesn't exist 解决办 ...

  7. VS报错:fatal error LNK1104: 无法打开文件“kernel32.lib”解决办法

    VS报错:fatal error LNK1104: 无法打开文件"kernel32.lib"解决办法 问题所在 解决方案一 解决方案二 问题所在 我使用VS是运行Fortran程序 ...

  8. eclipse下编写android程序突然不会自动生成R.java文件和包的解决办法

    eclipse下编写android程序突然不会自动生成R.java文件和包的解决办法 我的eclipse原来是好好的,什么问题都没有的,结果今天一打开新建一个android程序,发现工程里不会自动生成 ...

  9. 关于angular开发中报错Cannot find module ‘webpack/lib/node/NodeTemplatePlugin‘问题的解决办法若干

    关于angular开发中报错Cannot find module 'webpack/lib/node/NodeTemplatePlugin'问题的解决办法若干 参考文章: (1)关于angular开发 ...

  10. FrameMaker 10启动时报错(Licensing for this product has expired)的解决办法

    FrameMaker 10启动时报错(Licensing for this product has expired)的解决办法: 安装10.0.3补丁包. 补丁下载地址: http://helpx.a ...

最新文章

  1. HTML5响应式企业集团织梦模板,响应式HTML5信息产业企业集团网站织梦模板
  2. 【Spring】BeanUtils.copyPorperties()的IllegalArgumentException原因分析
  3. 如果在chrome的新标签中继续打开开发工具
  4. mysql的函数用途_MYSQL小函数大用途之-------FIND_IN_SET
  5. java importgeopoint_Java GeoPoint.project方法代碼示例
  6. 巧用Notepad++代码粘贴功能
  7. 一文弄懂特征缩放(归一化/正则化)
  8. BD_source code for problem 1555
  9. python网络编程基础--http
  10. python 安居客 爬虫_Python爬虫安居客房价信息(并利用百度地图API查询坐标)
  11. 辉迅手机号码归属地查询软件 手机号码归属地 手机查询
  12. 上次来杭州,已经六年了。。
  13. 用前端框架开发一款APP要多少钱
  14. 使用 Taurine “牛磺酸” 及 AltStore 越狱 iOS 11-14.3 教程
  15. Java中常用的String方法解析和使用示例
  16. CRM系统操作权限的实现
  17. 从源代码分析DbSet如何通过ObjectStateManager管理entity lifecycle的生命周期
  18. 实现isPrime()函数,参数为整数,要有异常处理。如果整数是质数,返回True,否则返回Flase。
  19. 提示Cannot resolve symbol xxx的解决办法
  20. ae中心点重置工具_AE中心点锚点移动对齐脚本 Move Anchor Point V2.0

热门文章

  1. jQuery选择器整理
  2. MaxAlertView 强大的弹框试图
  3. form中onsubmit的使用
  4. FPGA 起脚nCEO/IO管教设置问题
  5. 找不到QtDir变量的解决办法, 同时不需要经过编译就可以使用qt 库
  6. SQL:使用 CASE
  7. C++ Primer 5th笔记(chap 18 大型程序工具)构造函数与虚继承
  8. C++ Primer 5th笔记(chap 18 大型程序工具)异常处理
  9. Hyperledger Fabric 智能合约实战 (3) 安装fabric
  10. 《研磨设计模式》chap14 迭代器模式(3) 举例