shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.54k stars 1.54k forks source link

resources-debug-stripped.ap_ specified for property 'resourceFile' does not exist #142

Closed fengqingxiuyi closed 7 years ago

fengqingxiuyi commented 7 years ago

image

simpleton commented 7 years ago

这个是在什么情况下出现的呢?

On Mar 20, 2017 9:24 PM, "风清袖一" notifications@github.com wrote:

[image: image] https://cloud.githubusercontent.com/assets/20492527/24101508/8e7c4b00-0db3-11e7-9fa5-2fb771fca30a.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/142, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYt64_WEU3DndI7HrHMsiejYiHWHeks5rnn4RgaJpZM4Mia70 .

fengqingxiuyi commented 7 years ago

在gradle中配置了资源混淆内容后,使用./gradlew resguardDebug打包会报这样的错,不过我前天这样打包的时候还没有问题,不知道是我的锅还是你升级之后的锅

fengqingxiuyi commented 7 years ago

问题已经解决,但是根本原因还不清楚,目前发现如果打包命令是./gradlew resguardRelease的话是没有问题的,但是如果打包命令是./gradlew resguardDebug的话,需要将shrinkResources设置为false才可以,如果你清楚更根本原因的话,请告知

simpleton commented 7 years ago

@fengqingxiuyi 这个应该不是AndResGuard引入的问题,https://developer.android.com/studio/build/shrink-code.html#shrink-resources