title: How to set proguard rule for Room library on Android
body: <p>In my application i want use <code>Room</code> library for use <strong>database</strong>, and for finally for <strong>generate APK</strong> i enable <strong>minify</strong> option (<strong>proguard</strong>) in <code>Build.Gradle</code> .<br></p>
  
  <p><strong>I use below version of Room library :</strong> </p>
  
  <pre><code>implementation "android.arch.persistence.room:runtime:1.1.1"
  annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
  </code></pre>
  
  <p><strong>I write below codes in proguard-rules :</strong> </p>
  
  <pre><code>-dontwarn class android.arch.persistence.room.paging.LimitOffsetDataSource
  -dontwarn interface android.arch.persistence.room.paging.LimitOffsetDataSource
  -dontwarn class android.arch.util.paging.CountedDataSource
  -dontwarn interface android.arch.util.paging.CountedDataSource
  </code></pre>
  
  <p><strong>But when generate APK show me below error in <code>Build</code> tab :</strong> </p>
  
  <pre><code>Unknown option 'android.arch.persistence.room.paging.LimitOffsetDataSource' in line 39 of file '/Volumes/M/Test Projects/MyApp/app/proguard-rules.pro'
  </code></pre>
  
  <p><strong>Show me error for this line :</strong> </p>
  
  <pre><code>-dontwarn class android.arch.persistence.room.paging.LimitOffsetDataSource
  </code></pre>
  
  <p>How can fix this issue?</p>