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

编译sample时出现下面错误,在添加strictSplitResources = false之后,异常消失。什么原因? #175

Open
aqiuzzt opened this issue Jun 24, 2016 · 2 comments
Labels

Comments

@aqiuzzt
Copy link

aqiuzzt commented Jun 24, 2016

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':lib.utils:processReleaseResources'.

    In strict mode, we do not allow vendor aars, please declare them in host build.gradle:

    • compile('com.android.support:appcompat-v7:23.2.1')
      or turn off the strict mode in root build.gradle:
      small {
      strictSplitResources = false
      }
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

@galenlin
Copy link
Member

感觉我这个异常提示白说了呀。。:joy:
翻译下就是:严格模式下,插件不允许使用第三方aar,需要在宿主里同时申明,或者将strictSplitResources设置为false。即“非强制模式”

为什么默认为严格模式是因为 最初的设想是第三方依赖一般变动少,可以直接放宿主定义。这样插件里就可以剥离,达到插件最小化。后为了灵活性,增加了strictSplitResources的关闭选项。

@aqiuzzt
Copy link
Author

aqiuzzt commented Jun 27, 2016

ok ,非常感谢

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

No branches or pull requests

2 participants