title: Difference between androidx and com.android.support
body: <p>I was about to use a constraint-layout in my project when I noticed that there are two different dependencies that I can use:</p>
  <ul>
  <li><code>com.android.support.constraint:constraint-layout</code></li>
  <li><code>androidx.constraintlayout:constraintlayout</code></li>
  </ul>
  <p>Is there a difference between these two or some recommendation on which is preferable?</p>
  <p><strong>EDIT</strong></p>
  <p>Google is stopping support for <code>com.android.support</code> and prompts users to migrate to the new <code>androidx</code> equivalent.</p>
  <blockquote>
  <p>Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.</p>
  <p>You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.</p>
  <p>We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.</p>
  </blockquote>
  <p>Here is the official <a href="https://developer.android.com/jetpack/androidx/migrate" rel="noreferrer">Migration guide</a> and the corresponding library equivalents.</p>