alibaba / AndFix

AndFix is a library that offer hot-fix for Android App.
Other
6.97k stars 1.6k forks source link

applymapping 使用 #243

Open cococa opened 8 years ago

cococa commented 8 years ago

在第一编译后生成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`

cococa commented 8 years ago

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

supern commented 8 years ago

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

cococa commented 8 years ago

@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

supern commented 8 years ago

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

cococa commented 8 years ago

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

supern commented 8 years ago

@cococa 64位需要留下来

shakawwq commented 6 years ago

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