I am following Steps provided by IBM to build MobileFirst hybrid application for default Aurora store. I found the desired WCWorklight.zip at location
C:\{Installation dir}\components\store-enhancements\samples\Worklight\
On tutorial there were many js files that need to be replaced but those were not present in WCWorklight.zip e.g.
After building the apk when I ran it it is throwing error
Process: com.ibm.commerce.worklight.android, PID: 3001
java.lang.NoClassDefFoundError: com.worklight.location.internal.nativeImpl.AndroidWLDevice
at com.worklight.wlclient.api.WLClient.<init>(WLClient.java:177)
at com.worklight.wlclient.api.WLClient.createInstance(WLClient.java:229)
at com.worklight.common.Logger.setContext(Logger.java:549)
at com.worklight.androidgap.WLDroidGap.onCreate(WLDroidGap.java:43)
at com.ibm.commerce.worklight.android.WCHybrid.onCreate(WCHybrid.java:143)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Please let me know if any one faced such issues.
Thanks in advance.
WebSphere Commerce specifically mentions that you need Worklight 6.0, where you are using 7.1.
You need to check if there is a version that is updated for 7.1.
7.1 is wholly different from 6.0 (by years of development).
Contact IBM WebSphere Commerce.
Related
After updating tinylog to version 2.5.0-M1.1 \ 2.5.0-M2, On Android 4.4 API 19 Started throwing VerifyError exceptions as soon as ThreadContext.put() or org.tinylog.Logger.tag() is called. On other versions of android everything is fine
Translation to version 2.4.1 helps. But I need to use DynamicPolicy
I did not find the minimum version of the API in the documentation. From the application side, I could not get around the exception. Can you please tell me if this can be fixed or version 2.5 is not supported on android 4.4?
Here is the full exception:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: ru.wsoft.push.sample, PID: 6609
java.lang.VerifyError: org/tinylog/configuration/JndiValueResolver
at org.tinylog.configuration.Configuration.<clinit>(Configuration.java:64)
at org.tinylog.provider.ProviderRegistry.loadLoggingProvider(ProviderRegistry.java:87)
at org.tinylog.provider.ProviderRegistry.<clinit>(ProviderRegistry.java:39)
at org.tinylog.ThreadContext.<clinit>(ThreadContext.java:32)
at ru.wings.push.sdk.logging.b.a(Unknown Source)
at ru.wings.push.sdk.logging.b.a(Unknown Source)
at ru.wings.push.sdk.logging.b.a(Unknown Source)
at e.a.a(Unknown Source)
at e.a.$r8$lambda$a3WCZYd0yZju55XeNNLHv5MIHVY(Unknown Source)
at e.a$$ExternalSyntheticLambda0.onComplete(Unknown Source)
at com.google.android.gms.tasks.zzj.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
enter code here
This bug is fixed in tinylog 2.5.0-M2.1: https://tinylog.org/v2/2022/06/update-for-second-milestone-2/
Thank you for reporting this bug! Please test this version and let me know, whether it works for you.
FATAL EXCEPTION: mainProcess: com.easy.easypackage, PID: 17362
java.lang.NoClassDefFoundError: io.fabric.sdk.android.InitializationTask
at io.fabric.sdk.android.Kit.<init>(Kit.java:45)
at com.twitter.sdk.android.core.TwitterCore.<init>(TwitterCore.java:69)
at com.twitter.sdk.android.core.TwitterCore.<init>(TwitterCore.java:63)
at com.easy.easypackage.utils.AppApplication.onCreate(AppApplication.java:22)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730)
at android.app.ActivityThread.access$1600(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
I have setup digits and everything works fine for lolipop and above version devices but crashes on lower version devices from kitkat.
Todd from Fabric. It is important to note that Digits 2.0 supports Android 14+. Please do not upgrade to Digits 2.0 if your project needs to be built for Android versions less than 14. Check out this page for details.
I am trying to connect to pusher in android using pusher-java-client1.2.1 library and my code for connection is given below
if(Utils.isOnline(mcontext)) {
PusherOptions pOptions = new PusherOptions();
pOptions.setAuthorizer(new HttpAuthorizer(Constants.PUSHER_AUTH_SRC_URL + "/auth.php"));
pusher = new Pusher(Constants.PUSHER_KEY, pOptions);
pusher.connect();
channel = pusher.subscribe(Utils.getPref(mcontext, "channel_name", ""));
Utils.setPref(mcontext, "OtherUserId", "");
}else{
Utils.setCustomToast(mcontext,Constants.NO_INTERNET,false);
}
and my this code is working fine in android 5.0 and above versions but in android 4.4 application crashes with following logcat output
java.lang.NoClassDefFoundError: com.pusher.client.util.Factory
at com.pusher.client.Pusher.<init>(Pusher.java:83)
at com.driversafe.chat.MessageStatusApiCalling.pusherConnect(MessageStatusApiCalling.java:62)
at com.driversafe.chat.ApplicationLifeCycleHandler.onActivityCreated(ApplicationLifeCycleHandler.java:27)
at android.app.Application.dispatchActivityCreated(Application.java:189)
at android.app.Activity.onCreate(Activity.java:903)
at android.support.v4.app.BaseFragmentActivityDonut.onCreate(BaseFragmentActivityDonut.java:39)
at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:298)
at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:84)
at com.driversafe.SplashActivity.onCreate(SplashActivity.java:57)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
can any body suggest me the solution of this problem
The Problem was in dependencies i have used google-play-service google play service and pusher-java-client are confliction sor i resolved issue by using specific dependencies google-play-service-gcm
I tried to download source from Telegram Messenger GitHub, using Android Studio, I run the project with the target my Lenovo Mobile ( connected )
In the mobile shows error : Unfortunately, Telegram has stopped
Mind to advise. Many thanks and best regards.
The CatLog mainly seems like this :
09-28 11:50:37.263 15071-15071/org.telegram.messenger E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: org.telegram.messenger, PID: 15071
java.lang.RuntimeException: Unable to resume activity {org.telegram.messenger/org.telegram.ui.IntroActivity}: java.lang.IllegalArgumentException: App ID length must be 32 characters.
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2777)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2806)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2241)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5095)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: App ID length must be 32 characters.
at net.hockeyapp.android.utils.Util.sanitizeAppIdentifier(Util.java:144)
at net.hockeyapp.android.CrashManager.initialize(CrashManager.java:347)
at net.hockeyapp.android.CrashManager.register(CrashManager.java:124)
at net.hockeyapp.android.CrashManager.register(CrashManager.java:112)
at org.telegram.messenger.AndroidUtilities.checkForCrashes(AndroidUtilities.java:769)
at org.telegram.ui.IntroActivity.onResume(IntroActivity.java:238)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5310)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2767)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2806)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2241)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5095)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
You need to obtain and enter the following details in src/Messenger/BuildVars.java to successfully run the app:
Telegram App ID and App Hash
Google Cloud Messaging App ID: https://developers.google.com/cloud-messaging/
Hockey API Key
https://rink.hockeyapp.net/
Go to this link and register yourself. Then create a new android app by entering its details and obtain the api key.
The Telegram app will build and run sucessfully once you have entered all of these correctly in the BuildVars.java file.
Looks like you have not created Teligram project. Kindly follow the link given below and get your APPID
https://core.telegram.org/api/obtaining_api_id
Post which you should add it to teligram project. Let me know if you have any issues
as #Abhijay Kumar mentained .
you must do two step , like this :
1 . Telegram App ID and App Hash
you can get telegram app id in :
get telegram app key
2 . Hockey API Key
you can get hockey api key in :
get hockey api key
I've tried to import mupdf to my app, but when I open it, i got some weird error and it force closes. Why? I really don't understand.
this is my logcat:
10-10 15:34:17.802 8657-8657/com.tproductions.Openit E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.tproductions.Openit, PID: 8657
java.lang.UnsatisfiedLinkError: Native method not found: com.artifex.mupdfdemo.MuPDFCore.openFile:(Ljava/lang/String;)J
at com.artifex.mupdfdemo.MuPDFCore.openFile(Native Method)
at com.artifex.mupdfdemo.MuPDFCore.<init>(MuPDFCore.java:68)
at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:204)
at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:303)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5135)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
at dalvik.system.NativeStart.main(Native Method)
It looks like something has gone wrong in the native build.
It's probably best to retry that; there are instructions here:
http://www.mupdf.com/doc/how-to-build-mupdf-for-android
and here:
http://git.ghostscript.com/?p=mupdf.git;a=blob_plain;f=platform/android/ReadMe.txt;hb=HEAD
It's probably best to use the git code from master - the latest is 1.6, versions prior to 1.5 are unlikely to build cleanly with the current NDKs.