2016-03-04 35 views
0

试图实现InstaBug第一次,但是,当我将其初始化,InstaBug,解决不了“生成器”

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

Android Studio中说无法解析符号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' } 
+0

你的build.gradle在哪里? –

+0

我编辑了这个问题! – OBX

+0

[看看](https://github.com/Instabug/android-sample) –

回答

1

Instabug.Builder在Instabug SDK的V2 +推出。

你可以尝试在指定的Gradle的最新版本Instabug,具体如下:

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

PS:v2.2.1在写这篇文章时最新

P.S2:instabugcompat是相当于instabugsupport在V2 +

P.S3:Instabug不包括排球了,所以你不需要将它排除在外了

欲了解更多详情,请不要犹豫,问。你可以检查this out以及@ m-d提到的