0

My app was worked fine until i added instamojo library in 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

In class file,

cannot resolve method `getViewTreeObserver` at this line,

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

4

1 回答 1

0

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

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

于 2016-08-30T06:13:51.407 回答