Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug 和 Release 打的包不一样呢? #504

Open
firsthubgit opened this issue Feb 26, 2022 · 2 comments
Open

Debug 和 Release 打的包不一样呢? #504

firsthubgit opened this issue Feb 26, 2022 · 2 comments

Comments

@firsthubgit
Copy link

firsthubgit commented Feb 26, 2022

gradle-6.7.1-bin
classpath "com.android.tools.build:gradle:4.2.1"

image

这个Debug包

image

这个是Release包

并且release包打不开。。。两个配置是一样的啊,这是为什么
都是 keepRoot = false

修改了fixedResName = ”gra“ 这个可以生效

@firsthubgit
Copy link
Author

keepRoot 改成true以后,只有打debug包生效了, release包没生效
image

image

@firsthubgit
Copy link
Author

firsthubgit commented Feb 26, 2022

参考: #466 (comment)
解决了
Addandroid.enableResourceOptimizations=falsein gradle.properties can disable ResourceOptimizations, then you can use AndResGurad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant