package android.support.v4.util does not exist

前端 未结 11 882
情书的邮戳
情书的邮戳 2020-12-24 13:26

Since the last update for android support libraries, I am having issues with importing LruCache. Eclipse, and now even android studio, keep saying that package android.suppo

11条回答
  •  青春惊慌失措
    2020-12-24 13:50

    If you're using Gradle, I had to also add this line to the dependencies section of my inner build.gradle, the file where you specify your minSdkVersion and targetSdkVersion:

    dependencies {
      compile "com.android.support:support-v4:19.0.+"
    }
    

    I believe the '19' is supposed to be whatever your compileSdkVersion. If I'm wrong, it will tell you what it's supposed to be.

提交回复
热议问题