我的应用程序运行正常,直到我在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(){
答案 0 :(得分:0)
listview将从android.support.v7.internal.widget中删除。
你可以在android.support.v7.widget.ListViewCompat找到相同的内容。