Ricerche recenti
Nessuna ricerca recente
Android SDK - Crash on HelpCenterActivity
Data ultimo post: 04 feb 2024
I am getting now a crash after calling the HelpCenterActivitiy:
zendesk.configurations.Configuration requestActivityConfig = RequestActivity.builder()
.withRequestSubject("Support Contact App")
.withCustomFields(Arrays.asList(fieldAndroidVersion,
fieldAndroidVersionName, fieldAppVersion, fieldAppVersionCode, fieldAppVersionCode,
fieldPhoneDeviceName, fieldPhoneManufacturer, fieldPhoneModel))
.config();
HelpCenterActivity.builder()
.withArticlesForCategoryIds(200017023L) // General Category
.show(context, requestActivityConfig);
The crash:
FATAL EXCEPTION: main
Process: com.colapps.reminder, PID: 10476
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.colapps.reminder/zendesk.support.guide.HelpCenterActivity}: java.lang.IllegalArgumentException: Unable to create call adapter for interface jf.b
for method SdkSettingsService.getSettings
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3645)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalArgumentException: Unable to create call adapter for interface jf.b
for method SdkSettingsService.getSettings
at jf.g0.n(SourceFile:47)
at jf.m.d(SourceFile:15)
at jf.m.f(SourceFile:69)
at jf.d0.b(SourceFile:20)
at jf.c0.c(SourceFile:25)
at jf.c0$a.invoke(SourceFile:38)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at zendesk.core.$Proxy4.getSettings(Unknown Source)
at zendesk.core.ZendeskSettingsProvider.getSettingsInternal(SourceFile:4)
at zendesk.core.ZendeskSettingsProvider.getSettingsForSdk(SourceFile:60)
at zendesk.support.ZendeskHelpCenterSettingsProvider.getSettings(SourceFile:12)
at zendesk.support.guide.HelpCenterModel.getSettings(SourceFile:3)
at zendesk.support.guide.HelpCenterPresenter.init(SourceFile:17)
at zendesk.support.guide.HelpCenterActivity.onCreate(SourceFile:149)
at android.app.Activity.performCreate(Activity.java:8305)
at android.app.Activity.performCreate(Activity.java:8284)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)
... 12 more
Caused by: java.lang.IllegalArgumentException: Call return type must be parameterized as Call<Foo> or Call<? extends Foo>
at jf.j.a(SourceFile:43)
at jf.c0.e(SourceFile:36)
at jf.c0.a(SourceFile:2)
at jf.m.d(SourceFile:1)
... 28 more
Can anybody help?
I am now on the newest SDK build 5.2.0
CompileSDK and TargetSDKVersion is 33
I use minifyEnabled and shrinkResources and have added the additonal R8 proguard rules.
0
1
1 commento
Christian Grasser
Seems it needs the proguard rules from retrofit here:
https://github.com/square/retrofit/blob/trunk/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
After adding it, it is working again.
0
Accedi per aggiungere un commento.