Home > database >  Failed to initialize editor. when update android studio
Failed to initialize editor. when update android studio

Time:09-26

today i have update my android studio version Android Studio Dolphin | 2021.3.1 then i got an issue.

like xml preview are not showing.

and suggestion not found in xml and java class

Image

CodePudding user response:

Downgrard your project into build.gradle [app level] Change your targetSdk and compileSdk 33 to 32, and downgrade your library...

Change minSdk atleast 21

android{

    compileSdk 32

    defaultConfig {
       minSdk 21
       targetSdk 32
       ...
    }
...
}

And

Use this versions of librarys ...

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4. '
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  • Related