第一次尝试实现InstaBug时,当我初始化它时,
new Instabug.Builder(this, "XXXXXXXXXXXXXXXXXXXX")
.setInvocationEvent(Instabug.IBGInvocationEvent.IBGInvocationEventShake)
.build();Android说无法解决符号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' }发布于 2016-03-08 10:11:49
将Instabug.Builder引入到Instabug的v2+中。
您能否尝试在您的gradle中指定最新版本的Instabug,如下所示:
compile('com.instabug.library:instabugcompat:2.2.1')P.S:在撰写本报告时,v2.2.1是最新的
P.S2:instabugcompat相当于v2+中的instabugsupport
P.S3:不稳定不再包括截击,所以你不需要再排除它了
要了解更多细节,请不要犹豫。您可以检查这件事和@m-d。
https://stackoverflow.com/questions/35789047
复制相似问题