Skip to Content

SAP Native android application Failed Resolution

Hi,

I am trying to create native Android application based on Tutorial from https://www.sap.com/developer/tutorials/hcpdo-android-sdk-setup.html this link.

I have successfully deployed my application. After given the Username and pasword i am getting an Error as below.

E/AndroidRuntime: FATAL EXCEPTION: Thread-2361 Process: com.northwind.nwandroid, PID: 22655 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/sap/mobile/lib/supportability/Logger; at com.sap.maf.tools.logon.core.reg.ChannelSelector.makeServerRequest(ChannelSelector.java:117) at com.sap.maf.tools.logon.core.reg.ChannelSelector.access$600(ChannelSelector.java:42) at com.sap.maf.tools.logon.core.reg.ChannelSelector$PingRequest.ping(ChannelSelector.java:291) at com.sap.maf.tools.logon.core.reg.ChannelSelector$PingRequest.access$000(ChannelSelector.java:267) at com.sap.maf.tools.logon.core.reg.ChannelSelector.selectChannel(ChannelSelector.java:108) at com.sap.maf.tools.logon.core.reg.RegistrationManager.register(RegistrationManager.java:101) at com.sap.maf.tools.logon.core.LogonCore.register(LogonCore.java:547) at com.sap.maf.tools.logon.manager.LogonManager.internalResolveLogonContext(LogonManager.java:800) at com.sap.maf.tools.logon.manager.LogonManager.resolveLogonContext(LogonManager.java:336) at com.sap.maf.tools.logon.manager.LogonManager.resolveLogonContextAsync(LogonManager.java:311) at com.sap.maf.tools.logon.manager.LogonManager$8.run(LogonManager.java:1333) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sap.mobile.lib.supportability.Logger" on path: DexPathList[[zip file "/data/app/com.northwind.nwandroid-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at com.sap.maf.tools.logon.core.reg.ChannelSelector.makeServerRequest(ChannelSelector.java:117) at com.sap.maf.tools.logon.core.reg.ChannelSelector.access$600(ChannelSelector.java:42) at com.sap.maf.tools.logon.core.reg.ChannelSelector$PingRequest.ping(ChannelSelector.java:291) at com.sap.maf.tools.logon.core.reg.ChannelSelector$PingRequest.access$000(ChannelSelector.java:267) at com.sap.maf.tools.logon.core.reg.ChannelSelector.selectChannel(ChannelSelector.java:108) at com.sap.maf.tools.logon.core.reg.RegistrationManager.register(RegistrationManager.java:101) at com.sap.maf.tools.logon.core.LogonCore.register(LogonCore.java:547) at com.sap.maf.tools.logon.manager.LogonManager.internalResolveLogonContext(LogonManager.java:800) at com.sap.maf.tools.logon.manager.LogonManager.resolveLogonContext(LogonManager.java:336) at com.sap.maf.tools.logon.manager.LogonManager.resolveLogonContextAsync(LogonManager.java:311) at com.sap.maf.tools.logon.manager.LogonManager$8.run(LogonManager.java:1333) at java.lang.Thread.run(Thread.java:818) Suppressed: java.lang.ClassNotFoundException: com.sap.mobile.lib.supportability.Logger at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 13 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available 06-03 14:13:26.590 22655-22655/? E/WindowManager: android.view.WindowLeaked: Activity com.northwind.nwandroid.view.MAFLogonActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{2e35d270 V.E..... R......D 0,0-503,258} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:367) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:271) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:306) at com.sap.maf.tools.logon.logonui.LogonProgressDialog.show(LogonProgressDialog.java:59) at com.sap.maf.tools.logon.logonui.LogonView.showProgress(LogonView.java:2634) at com.sap.maf.tools.logon.logonui.LogonView.showProgress(LogonView.java:2646) at com.sap.maf.tools.logon.manager.LogonManager.onLogonContextUpdated(LogonManager.java:1328) at com.sap.maf.tools.logon.logonui.LogonView.onLogon(LogonView.java:2467) at com.sap.maf.tools.logon.logonui.LogonView.access$5000(LogonView.java:75) at com.sap.maf.tools.logon.logonui.LogonView$DoneContextBarItem.performAction(LogonView.java:2738) at com.sap.maf.uicontrols.view.MAFActionBarItemView$1.onClick(MAFActionBarItemView.java:112) at android.view.View.performClick(View.java:4856) at android.view.View$PerformClick.run(View.java:19956) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:211) at android.app.ActivityThread.main(ActivityThread.java:5373) 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:1020) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

Kindly help me to resolve this problem.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers