Android Studio 3.1: mixing versions can lead to runtime crashes

后端 未结 10 1028
北荒
北荒 2021-02-07 05:11

Have recently upgraded to Android Studio 3.1, and at the same time I\'m trying the Android P preview.

I\'m getting the following error on compiling:

10条回答
  •  我在风中等你
    2021-02-07 06:11

    The above warning is not specific to media-compat dependency. They just added example to explain the issue. The issue get resolved by adding v4 lib for me.

    implementation 'com.android.support:support-v4:28.0.0'

    in addition to

    implementation 'com.android.support:appcompat-v7:28.0.0'
    

    No need include

    implementation 'com.android.support:animated-vector-drawable:28.0.0'
    implementation 'com.android.support:support-media-compat:28.0.0'
    

提交回复
热议问题