Home > OS >  Android Studio: Failed to initialize editor | Dolphin 2021.3.1
Android Studio: Failed to initialize editor | Dolphin 2021.3.1

Time:09-27

AS: Dolphin | 2021.3.1 Kotlin plugin: 1.7.10 Android Gradle Plugin: 7.0.4 Gradle: 7.1.1 Gradle JDK: version 11.0.13

I've upgraded my Android Studio to Dolphin 2021.3.1 from Chipmunk 2021.2.1 and after updating Android Studio I'm facing issue that my project is showing error "Failed to initialize editor" in all my xml files.

I've tried the following:

  • Invalidate caches and restart
  • Clean > Rebuild
  • Clean > Rebuild > Sync Project with Gradle Files
  • Sync Project with Gradle Files > Clean > Rebuild

But nothing helped me out!

CodePudding user response:

I have same issue with dolphin android studio. In my case, I have upgraded the project AGP (Android Gradle Plugin) and then restart the android studio.

Problem Solved.

CodePudding user response:

me paso igual que a ti, en mi caso lo resolví haciendo las siguientes actualizaciones.

en el build.gradle

dependencies {
    classpath 'com.android.tools.build:gradle:4.0.1'
}

lo actualice a

dependencies {
    classpath 'com.android.tools.build:gradle:7.3.0'
}

en el build.gradle de app cambie la versión compileSdkVersion a 32 y targetSdkVersion 32

android {
 ....
    compileSdkVersion 32
    defaultConfig {
       ....
       targetSdkVersion 32
    }
}

la estructura del proyecto quedo de la siguiente manera.

Ver estructura de proyecto

  • Related