applymapping 使用
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
在第一编译后生成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`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Android/Gradle ProGuard configuration that supplies -applymapping and the mapping file from the first compilation; no source file is named. Re-run :app:transformClassesAndResourcesWithProguardForOnlineRelease and inspect the remapping warnings. Done means the task completes and generates the new APK without the reported mapping-conflict failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100