LoginSignup
0
0

AndroidのJUnitテストは超ムズい(5)

Last updated at Posted at 2023-08-28

API 34でrobolectricが失敗して起動しなくなる。

build.gradle.kts
android {
    ・・・
    compileSdk = 34
    defaultConfig {
        ・・・
        targetSdk = 34

でlocal testを実行すると

Package targetSdkVersion=34 > maxSdkVersion=33
	at org.robolectric.RobolectricTestRunner.getChildren(RobolectricTestRunner.java:259)

robolectricはまだAPI 34(Android 14)には対応してないようです。
Support for sdk 34 #8404

API 34に上げるのはまだ待ちましょう。

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