Search code examples
android-studioandroid-manifestattributeerror

Tons of "Unknown attribute" errors in AndroidManifest file


After upgrading to API 33 in Android studio, I am getting tons of "Unknown attribute" errors in the AndroidManifest.xml file. I tried invalidating cache and restarting, I tried removing the ~/.gradle/caches/ folder, and still getting the errors. The first two already the versionCode and versionName:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  package="com.floritfoto.apps.xvfviewer"
  android:versionCode="147"
  android:versionName="3.10">
  ...

Still, the project compiles, and I get no inspection errors.


Solution

  • Update to new version of Android Studio Dolphin. It will fix the error. Dolphin Version is stable now.

    https://developer.android.com/studio/releases?utm_source=android-studio