question

tg avatar image
tg asked tg commented

Create account crashes after running retarget script

After running the retargeting script on my emulator to retarget to the EU, the engine crashes whenever I try to add an account any ideas on how to fix this?

E/AndroidRuntime( 2583): FATAL EXCEPTION: main E/AndroidRuntime( 2583): Process: com.clover.engine, PID: 2583 E/AndroidRuntime( 2583): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.clover.engine/com.clover.engine.authenticator.LoginActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x0 E/AndroidRuntime( 2583): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184) E/AndroidRuntime( 2583): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) E/AndroidRuntime( 2583): at android.app.ActivityThread.access$800(ActivityThread.java:135) E/AndroidRuntime( 2583): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) E/AndroidRuntime( 2583): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 2583): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 2583): at android.app.ActivityThread.main(ActivityThread.java:5001) E/AndroidRuntime( 2583): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2583): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 2583): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime( 2583): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime( 2583): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2583): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 E/AndroidRuntime( 2583): at android.content.res.Resources.getText(Resources.java:244) E/AndroidRuntime( 2583): at android.content.res.Resources.getString(Resources.java:330) E/AndroidRuntime( 2583): at com.clover.config.CloverConfig.get(CloverConfig.java:88) E/AndroidRuntime( 2583): at com.clover.engine.authenticator.LoginActivity.onCreate(LoginActivity.java:40) E/AndroidRuntime( 2583): at android.app.Activity.performCreate(Activity.java:5231) E/AndroidRuntime( 2583): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime( 2583): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) E/AndroidRuntime( 2583): ... 11 more

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

What input did you provide to this script and what the values of your secure settings clover_target and clover_cloud_url?

0 Likes 0 ·
tg avatar image tg commented ·

Hey Jeff thanks for your response, I selected '2' for PROD-EU. Here are the values you requested:

clovercloudurl = https://api.eu.clover.com/ clover_target = prod-eu

0 Likes 0 ·

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered tg commented

The script is wrong. It should have set the target to "prod_eu" (with an underscore). You can edit the script and make that change and re-run. I'll file an internal issue to get it fixed.

Keep in mind that if you've already activated Clover on a particular environment, you won't be able to switch environments (using any method). You need to wipe data on the emulator, retarget, and re-activate (login).

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tg avatar image tg commented ·

worked like a charm, thanks Jeff!

0 Likes 0 ·

Welcome to the
Clover Developer Community