AndFix applymapping 使用

dly7yett  于 2022-12-31  发布在  其他
关注(0)|答案(7)|浏览(196)

在第一编译后生成mapping 文件,
修复bug 后,用-applymapping mapping,发现老是报错,生成不了新的apk

You should check your configuration for typos. (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass) Note: there were 116 unkept descriptor classes in kept class members. You should consider explicitly keeping the mentioned classes (using '-keep'). (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass) Note: there were 110 library classes explicitly being kept. You don't need to keep library classes; they are already left unchanged. (http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass) Note: there were 27 unresolved dynamic references to classes or interfaces. You should check if you need to specify additional program jars. (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) Note: there were 1 class casts of dynamically created class instances. You might consider explicitly keeping the mentioned classes and/or their implementations (using '-keep'). (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast) Note: there were 8 accesses to class members by means of introspection. You should consider explicitly keeping the mentioned class members (using '-keep' or '-keepclassmembers'). (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember) Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder load(java.lang.Object)' is not being kept as 'b', but remapped to 'a' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder signature(com.bumptech.glide.load.Key)' is not being kept as 'b', but remapped to 'a' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder listener(com.bumptech.glide.request.RequestListener)' is not being kept as 'b', but remapped to 'a' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder error(int)' is not being kept as 'd', but remapped to 'a' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder placeholder(int)' is not being kept as 'c', but remapped to 'b' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder dontAnimate()' is not being kept as 'h', but remapped to 'e' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder dontTransform()' is not being kept as 'i', but remapped to 'f' Warning:com.bumptech.glide.DrawableRequestBuilder: method 'com.bumptech.glide.DrawableRequestBuilder diskCacheStrategy(com.bumptech.glide.load.engine.DiskCacheStrategy)' is not being kept as 'b', but remapped to 'a' Warning:com.bumptech.glide.GifRequestBuilder: method 'com.bumptech.glide.GifRequestBuilder dontAnimate()' is not being kept as 'g', but remapped to 'e' Warning:com.kqc.b2b.ui.article.ArticleActivity: method 'void onLoadMore()' is not being kept as 'l_', but remapped to 'k_' Warning:com.kqc.b2b.ui.article.ArticleActivity: method 'void onLoadMore()' is not being kept as 'k_', but remapped to 'l_' Warning:com.kqc.b2b.ui.news.adapter.CarNewsAdapter: method 'boolean isUseHeader()' is not being kept as 'a', but remapped to 'getItemCount' Warning:com.kqc.b2b.ui.news.adapter.CarNewsAdapter: method 'boolean isUseHeader()' is not being kept as 'getItemCount', but remapped to 'onBindViewHolder' Warning:com.kqc.bundle.widget.recyclerview.base.IXPagingHeader: method 'boolean isUseHeader()' is not being kept as 'onBindViewHolder', but remapped to 'a' Warning:com.tencent.wxop.stat.StatConfig: method 'boolean isDebugEnable()' is not being kept as 'a', but remapped to 'b' Warning:com.tencent.wxop.stat.StatConfig: method 'boolean isDebugEnable()' is not being kept as 'b', but remapped to 'a' Warning:com.tencent.wxop.stat.StatConfig: method 'boolean isDebugEnable()' is not being kept as 'a', but remapped to 'c' Warning:uk.co.senab.photoview.PhotoViewAttacher: method 'boolean access$300()' is not being kept as 'a', but remapped to 'h' Warning:uk.co.senab.photoview.PhotoViewAttacher: method 'boolean access$300()' is not being kept as 'h', but remapped to 'g' Warning:there were 19 kept classes and class members that were remapped anyway. You should adapt your configuration or edit the mapping file. If you are sure this remapping won't hurt, you could try your luck using the '-ignorewarnings' option. (http://proguard.sourceforge.net/manual/troubleshooting.html#mappingconflict1) Warning:Exception while processing task java.io.IOException: Please correct the above warnings first. :app:transformClassesAndResourcesWithProguardForOnlineRelease FAILED Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForOnlineRelease'. java.io.IOException: Please correct the above warnings first. Information:BUILD FAILED

s3fp2yjn

s3fp2yjn1#

@supern 还有个问题,项目中引用了其它的库,这库只有armeabi 和 x86的so 文件, 怎么解决这类问题的问题

t3psigkw

t3psigkw2#

so库不影响啊,你是要更新so库吗

zfciruhq

zfciruhq3#

@supern
类似这样的问题 http://www.jianshu.com/p/7e37b76ae39a
我引用了两个库,andfix 0.5.0 和 'net.zetetic:android-database-sqlcipher:3.4.0@aar'
这个sqlcipher的aar 我看下,只有armeabi 和 x86 armeabi-v7a
而andfix 的有7个平台
现在是部分手机安装,就报错UnsatisfiedLinkError

1dkrff03

1dkrff034#

@cococa 如果是UnsatisfiedLinkError,你可以吧一些平台的so删除

wwwo4jvm

wwwo4jvm5#

@supern 主要是怕删掉一些平台的so ,andfix在部分机型报错

7eumitmz

7eumitmz6#

@cococa 64位需要留下来

swvgeqrz

swvgeqrz7#

你的build.gradle里代码混淆配置是不是用的getDefaultProguardFile('proguard-android-optimize.txt')?
改成getDefaultProguardFile('proguard-android.txt')试试

相关问题