我正在按照IBM 提供的步骤为默认的 Aurora 商店构建 MobileFirst 混合应用程序。我在位置找到了所需的 WCWorklight.zip
C:\{安装目录}\components\store-enhancements\samples\Worklight\
在教程中,有许多 js 文件需要替换,但WCWorklight.zip中不存在这些文件, 例如.
在我运行它时构建apk后它抛出错误
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)
请让我知道是否有人遇到过此类问题。
提前致谢。