LoginSignup
0
0

More than 1 year has passed since last update.

“Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications thatdepend on it to compile against version 33 or later of the Android APIs."のエラーを解消させる

Posted at

エラー

Android Studioで、runさせようとすると、

Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.

と表示されました。また、それと同時に

Dependency 'androidx.core:core:1.9.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.

とも表示されました。

解決

Gradle Script / build.gradle(Module の中の、

dependencies {

    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.6.1'
...
}

dependencies {

    implementation 'androidx.core:core-ktx:1.8.0'
    implementation 'androidx.appcompat:appcompat:1.4.2'
...
}

に書き換えます。

Android Studio上部に、「Syncしますか」と表示されますので、Syncさせます。

これで、正常に動作しました。

参考

Dependency 'androidx.appcompat:appcompat-resources:1.6.1'

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0