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

没有任何效果 #32

Open
yangkai3 opened this issue Nov 25, 2017 · 3 comments
Open

没有任何效果 #32

yangkai3 opened this issue Nov 25, 2017 · 3 comments

Comments

@yangkai3
Copy link

按照demo设置后,发现没有任何一点效果。然后fetch 下来demo,发现demo自己也不会分多dex。。。。

@yangkai3
Copy link
Author

gradle 是 2.14.1,请问demo需要什么特殊环境吗?

@yangkai3
Copy link
Author

image

@TangXiaoLv
Copy link
Owner

@yangkai3 切到mock productFlavors 测试 ,因为只配置mock可以分包

dexKnife{
    //必选参数
    enabled true //if false,禁用分包插件
    //可选参数
    //1.如果没有可选参数,将根据enabled决定是否分包。
    //2.如果有可选参数,需满足必选参数和可选参数的条件才允许分包
    productFlavor 'mock'
    //buildType 'debug'

    /*
    *eg:当前productFlavors = dev,buildType = debug,
    *参数组合1:enabled = true,productFlavor = dev,buildType = debug 分包
    *参数组合2:enabled = true,productFlavor = mock,buildType = debug 不分包
    *参数组合1:enabled = true,buildType = debug 所有buildType = debug分包
    *参数组合1:enabled = true,productFlavor = dev 所有productFlavor = dev分包
    * */
}

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

2 participants