第一次尝试实现InstaBug时,当我初始化它时,

 new Instabug.Builder(this, "XXXXXXXXXXXXXXXXXXXX")
            .setInvocationEvent(Instabug.IBGInvocationEvent.IBGInvocationEventShake)
            .build();


Android Studio说无法解析符号Builder
尽管Builder从java.lang.Object扩展而来,但仍无能为力。可以解决吗?

编辑:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.code.gson:gson:2.5'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile "com.google.android.gms:play-services:8.4.0"
compile 'com.android.support:cardview-v7:+'
compile 'com.android.support:design:+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.commit451:PhotoView:1.2.4'
compile 'net.danlew:android.joda:2.9.1'
compile project(":volley")
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile ("com.instabug.library:instabugsupport:+") { exclude group: 'com.mcxiaoke.volley', module: 'library' }

最佳答案

在Instabug SDK的v2 +中引入了Instabug.Builder

您可以尝试在gradle中指定最新版本的Instabug,如下所示:

compile('com.instabug.library:instabugcompat:2.2.1')


附言:v2.2.1是撰写本文时最新的

P.S2:instabugcompat等同于v2 +中的instabugsupport

P.S3:Instabug不再包含Volley,因此您不再需要排除它

有关更多详细信息,请随时询问。您可以检查this out以及提到的@ m-d

10-06 08:57