Migrating to AndroidX Errors:

Please Share On:

Before I was using Android 2.3. After Android X launched. I migrate my project built into Android 2.3 to Android X. Here, I faced certain errors and now I am going to show you how I resolved the following errors.

Error 1:

failed to resolve: com.android.support:design:29.0.2

My Solution:

failed to resolve: com.android.support:design:29.0.2

changed into

implementation 'com.google.android.material:material:1.2.0-alpha04'

Error 2:

failed to resolve: com.android.support:appcompact-v7:29.0.2

My Solution:


changed into

implementation 'androidx.appcompat:appcompat:1.1.0'

Error 3:

Android Resource linking failed

No resourece found: app:layout_behavior="@string/appbar_scrolling_view_behavior" 

My Solution:

Solved by restart the android project and clear catches

Error 4:

Error: The following classes could not be found:

android.support.design.widget.CoordinatorLayout (Fix Build Path, Edit XML, Create Class)

android.support.design.widget.AppBarLayout (Fix Build Path, Edit XML, Create Class)

android.support.design.widget.FloatingActionButton (Fix Build Path, Edit XML, Create Class)

android.support.v7.widget.Toolbar (Fix Build Path, Edit XML, Create Class)The following classes could not be found:

My Solution: Changed into





Error 5:

“cannot resolve symbol in R”


Method 1: Open your Android project manifest and changed your android app package name to the new package name.

Method 2: Restart android studio project. File -> Invalidate caches/restart.

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.

Social media & sharing icons powered by UltimatelySocial