<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prashant Kumar on Medium]]></title>
        <description><![CDATA[Stories by Prashant Kumar on Medium]]></description>
        <link>https://medium.com/@pknerist?source=rss-92ad27bc736b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*osTRnliTBr1q48BRiAEQvw.jpeg</url>
            <title>Stories by Prashant Kumar on Medium</title>
            <link>https://medium.com/@pknerist?source=rss-92ad27bc736b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:05:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pknerist/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Migrate Android project to AndroidX]]></title>
            <link>https://medium.com/@pknerist/migrate-android-project-to-androidx-b7c18b695b9f?source=rss-92ad27bc736b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7c18b695b9f</guid>
            <category><![CDATA[androidx]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[migrate-to-androidx]]></category>
            <dc:creator><![CDATA[Prashant Kumar]]></dc:creator>
            <pubDate>Mon, 10 Aug 2020 18:41:31 GMT</pubDate>
            <atom:updated>2020-08-10T18:41:31.373Z</atom:updated>
            <content:encoded><![CDATA[<h3>OVERVIEW</h3><p>AndroidX is a group of libraries that ship separately from the Android platform and provides backward compatibility across Android versions. AndroidX is a major improvement over the old Android support libraries and is intended to replace them completely. Keeping in mind the fact that Google has stopped the support for support libraries after 28.0.0, we should migrate our projects to AndroidX sooner than later.</p><h3>Why should we migrate to AndroidX</h3><ol><li>Most of the well known third party libraries have already migrated to Android X. To make use of their new feature, bug fixes or improvements we will have to upgrade. Few names include Google Play Services, Firebase notification services, Glide which are used by most of the apps. Flutter based libraries are also a good example.</li><li>Google has stopped support for old support libraries. So to find the fix for any bugs or vulnerabilities in old support libraries, we will have to look up to AndroidX libraries.</li><li>The Android ecosystem is getting better each day. It is in our interests to keep pace with it so as to improve our code for reduced size and better performance.</li><li>AndroidX has redesigned package structure to encourage smaller, more focused libraries that relieve pressure on apps and tests.</li><li>Unlike support libraries, AndroidX packages are separately maintained and updated. This means that you can use an updated version of one library for example RecyclerView without having to update the version of every other library.</li><li>All packages in AndroidX live in a consistent namespace starting with the string AndroidX. So no more v7, v4 and tons of confusing namespaces.</li><li>AndroidX also includes the new Jetpack components which helps in better architecting of our application.</li></ol><h3>How to migrate to AndroidX</h3><p>Migrating to AndroidX is hassle free. Android Studio provides tools which help you migrate the project from support libraries to AndroidX. It involves just a few clicks followed by some small fixes which are mostly reference issues. At granular level, it involves below steps.</p><ul><li>Make sure that the version of your Android Studio is higher that <strong>3.2</strong>.</li><li>Update to the latest version of Gradle.</li><li>The <strong>targetSdkVersion</strong> and <strong>compileSdkVersion</strong> should be 28 or higher.</li><li>Update to Support Library version ‘<strong>28.0.0’</strong>.</li><li>Add below properties in the <strong>gradle.properties </strong>file at the root of the project to enable Jetifier.</li></ul><pre>android.useAndroidX=true<br>android.enableJetifier=true</pre><ul><li>Update the third party libraries to latest versions to reduce chances of error after migration.</li><li>Commit the code once to separate these changes from changes done by Android studio while doing migration.</li><li>Start migration by choosing <strong>Migrate to AndroidX</strong> option on the <strong>Refactor</strong> menu.</li><li>You might get some error after migration which you need to fix.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7c18b695b9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>