Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. // In the library module:
  2. android {
  3. ...
  4. flavorDimensions 'check'
  5. productFlavors {
  6. noBase {}
  7. withBase {}
  8. }
  9. ..
  10. }
  11.  
  12. // in the app module:
  13. dependencies {
  14. implementation project(path: ':mylib', configuration: 'noBaseRelease')
  15. }
  16.  
  17. // ERROR:
  18. //Unable to resolve dependency for ':example@debug/compileClasspath': Could not resolve project :mylib.
  19.  
  20. //Could not resolve project :mylib.
  21. //Required by:
  22. // project :example
  23. // > Project :example declares a dependency from configuration 'implementation' to configuration 'noBaseRelease' which is not declared in the descriptor for project :mylib.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement