androidmigrationandroid-databindingandroidx

Binary XML file line #23 in layout/abc_screen_simple: Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout


enter image description here

I am upgrading android gradle and migrating to android X. I am getting this runtime error on inflating splash screen.

Edited: So this project is made for sdk 28 and it's working fine in android pie. Now I just updated gradle and increased targetSdkVersion to 34, Still getting the same error

let me know if you need more info


Solution

  • After migrating to android X, I needed to add few lines in build.Gradle as follows

    buildscript { 
        ...
        repositories {
            ...
            maven {
                url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
            }
        }
    }
    
    allprojects {
        repositories {
            ...
            mavenCentral()
            maven {
                //replace url "https://maven.google.com" with below
                url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
            }
        }
    }
    

    happy codding 👍