我正在使用 ZENDESK Android SDK 并尝试像这样打开支持活动:
new com.zendesk.sdk.support.SupportActivity.Builder().listCategories().show(this);
但它崩溃并出现以下错误:
java.lang.NoSuchFieldError: No static field support_search_input of type I in class Lcom/zendesk/sdk/R$id; or its superclasses (declaration of 'com.zendesk.sdk.R$id' appears in /data/data/nl.tirato.RoomEasy/files/instant-run/dex/slice-slice_2-classes.dex)
at com.zendesk.sdk.support.SupportActivity.onCreate(SupportActivity.java:205)
at android.app.Activity.performCreate(Activity.java:6289)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
我正在使用最新的 sdk :
compile group: 'com.zendesk', name: 'sdk', version: '1.6.1.1'
compile group: 'com.zendesk', name: 'sdk-providers', version:'1.6.1.1'
我的活动正在扩展AppCompatActivity
任何帮助表示赞赏。
谢谢