在build.gradle中添加库后发生冲突

时间:2016-08-26 13:50:02

标签: android listview instamojo

我的应用程序运行正常,直到我在instamojo

中添加了build.gradle
 dependencies {
        compile 'com.instamojo:android-sdk:+'
   }

    repositories {
    mavenCentral()
    maven {
        url "https://s3-ap-southeast-1.amazonaws.com/godel-release/godel/"
    }

    maven {
            url "https://jitpack.io"

        }
    maven { url 'https://maven.fabric.io/public' }
    }

Stacktrace:

Error:(308, 51) error: cannot access ListViewCompat
class file for android.support.v7.internal.widget.ListViewCompat not found

在课程档案中​​,

cannot resolve method `getViewTreeObserver` at this line,

mReplacementPopup.getListView()。getViewTreeObserver()。addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener(){

1 个答案:

答案 0 :(得分:0)

listview将从android.support.v7.internal.widget中删除。

你可以在android.support.v7.widget.ListViewCompat找到相同的内容。