title: what are LIBRARY LEAKS in leakcanary?
body: <p>in leakcanary sometimes i am getting leaks reported as "Library leaks"</p>
  
  <pre><code> HEAP ANALYSIS RESULT
      ====================================
      0 APPLICATION LEAKS
  
      References underlined with "~~~" are likely causes.
      Learn more at https://squ.re/leaks.
      ====================================
      1 LIBRARY LEAKS
  
      Library Leaks are leaks coming from the Android Framework or Google libraries.
  
      Leak pattern: instance field android.view.ViewGroup$ViewLocationHolder#mRoot
      Description: In Android P, ViewLocationHolder has an mRoot field that is not cleared in its clear() method. Introduced in https://github.com/aosp-mirror/platform_frameworks_base/commit/86b326012813f09d8f1de7d6d26c986a909d Bug report: https://issuetracker.google.com/issues/112792715
      66264 bytes retained by leaking objects
      Signature: 64becd25d6156daa91df6572a75b6a28ddb1
      ┬───
      │ GC Root: System class
  </code></pre>
  
  <p>at the leakcanary website it says:</p>
  
  <p><a href="https://square.github.io/leakcanary/api/shark/shark/-library-leak/" rel="nofollow noreferrer">LibraryLeak at leakcanary website</a></p>
  
  <blockquote>
    <p>LibraryLeak </p>
    
    <p>data class LibraryLeak :Leak</p>
    
    <p>A leak found by HeapAnalyzer, where the only path to the leaking
    object required going through a reference matched by pattern, as
    provided to a LibraryLeakReferenceMatcher instance. This is a known
    leak in library code that is beyond your control.</p>
  </blockquote>
  
  <p>is it really out of my control? </p>
  
  <p>might there be something i did to cause it? </p>
  
  <p>Is there anything i can do to prevent it?</p>
  
  <p>leakcanry sometimes places a link to report this memory leak but i don't see any response, is it something that android normally working on? if so, how such issues normally solved and how to keep track?</p>
  
  <p>if indeed there is nothing i can do to solve or prevent it, is there a way i can ask leakcanary to ignore LIBRARY LEAKS?</p>