Build failed after updating tools for Android L

前端 未结 3 775
醉话见心
醉话见心 2021-02-07 07:39

I cannot build my project after updating the tools. I get this error in Android Studio.

/build/exploded-aar/com.android.support/support-v4/21.0.0-rc1/And

3条回答
  •  野的像风
    2021-02-07 08:10

    In your app/build.gradle file, change
    compile 'com.android.support:support-v4:+'
    to
    compile 'com.android.support:support-v4:19.1.0'

    The '+' means that it will look for the newest version of the dependency. If you download the L preview, the latest version will be the support library for L - which isn't going to work for a project whose target is API 19.

提交回复
热议问题