Implementation on Android

I have issues implementing OneAll into Android app. I am getting class not found exception for ProviderSelectActivity. That activity is part of oneall sdk.

Kind regards,
Biljana

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team

    Hi Biljana,

    could you please post the exact error message or a screenshot of it?

    Regards,

  • edited March 2018

    Hi Claude,

    Here is the log.

    03-26 22:23:06.558 15655-15655/com.prikkworld E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.prikkworld, PID: 15655
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/oneall/oneallsdk/ProviderSelectActivity;
    at com.oneall.oneallsdk.OAManager.login(OAManager.java:266)
    at com.prikkworld.ui.activities.LoginActivity$1.onClick(LoginActivity.java:77)
    at android.view.View.performClick(View.java:5698)
    at android.view.View$PerformClick.run(View.java:22557)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7231)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.oneall.oneallsdk.ProviderSelectActivity" on path: DexPathList[[zip file "/data/app/com.prikkworld-1/base.apk"],nativeLibraryDirectories=[/data/app/com.prikkworld-1/lib/arm, /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.oneall.oneallsdk.OAManager.login(OAManager.java:266) 
    at com.prikkworld.ui.activities.LoginActivity$1.onClick(LoginActivity.java:77) 
    at android.view.View.performClick(View.java:5698) 
    at android.view.View$PerformClick.run(View.java:22557) 
    at android.os.Handler.handleCallback(Handler.java:739) 
    at android.os.Handler.dispatchMessage(Handler.java:95) 
    at android.os.Looper.loop(Looper.java:158) 
    at android.app.ActivityThread.main(ActivityThread.java:7231) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 
    Suppressed: java.lang.NoClassDefFoundError: com.oneall.oneallsdk.ProviderSelectActivity
    at dalvik.system.DexFile.defineClassNative(Native Method)
    at dalvik.system.DexFile.defineClass(DexFile.java:226)
    at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
    at dalvik.system.DexPathList.findClass(DexPathList.java:338)
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
    ... 13 more
    Suppressed: java.lang.ClassNotFoundException: com.oneall.oneallsdk.ProviderSelectActivity
    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)
    ... 12 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

    Kind Regards,
    Biljana

  • Here's another one:

    03-26 22:50:37.328 19327-19327/com.prikkworld E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.prikkworld, PID: 19327
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/oneall/oneallsdk/WebLoginActivity;
    at com.oneall.oneallsdk.OAManager.webLoginWithLoginData(OAManager.java:441)
    at com.oneall.oneallsdk.OAManager.webLoginWithProvider(OAManager.java:474)
    at com.oneall.oneallsdk.OAManager.login(OAManager.java:233)
    at com.prikkworld.ui.activities.LoginActivity$1.onClick(LoginActivity.java:98)
    at android.view.View.performClick(View.java:5698)
    at android.view.View$PerformClick.run(View.java:22557)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7231)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.oneall.oneallsdk.WebLoginActivity" on path: DexPathList[[zip file "/data/app/com.prikkworld-2/base.apk"],nativeLibraryDirectories=[/data/app/com.prikkworld-2/lib/arm, /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.oneall.oneallsdk.OAManager.webLoginWithLoginData(OAManager.java:441) 
    at com.oneall.oneallsdk.OAManager.webLoginWithProvider(OAManager.java:474) 
    at com.oneall.oneallsdk.OAManager.login(OAManager.java:233) 
    at com.prikkworld.ui.activities.LoginActivity$1.onClick(LoginActivity.java:98) 
    at android.view.View.performClick(View.java:5698) 
    at android.view.View$PerformClick.run(View.java:22557) 
    at android.os.Handler.handleCallback(Handler.java:739) 
    at android.os.Handler.dispatchMessage(Handler.java:95) 
    at android.os.Looper.loop(Looper.java:158) 
    at android.app.ActivityThread.main(ActivityThread.java:7231) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 
    Suppressed: java.lang.NoClassDefFoundError: com.oneall.oneallsdk.WebLoginActivity
    at dalvik.system.DexFile.defineClassNative(Native Method)
    at dalvik.system.DexFile.defineClass(DexFile.java:226)
    at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
    at dalvik.system.DexPathList.findClass(DexPathList.java:338)
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
    ... 15 more
    Suppressed: java.lang.ClassNotFoundException: com.oneall.oneallsdk.WebLoginActivity
    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)
    ... 14 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

  • Hi Claude,

    I didn't mentioned to you that I have tried to run sample project, and it crashes on startup. (I have added all the keys for twitter and fb). Similar crash, missing classes.

    Regards,
    Biljana

  • Hi Claude,

    could you please update me on the status of this issue that I've wrote to you about?

    King Regards,
    Biljana

  • Hi Biljana, have you been able to resolve this issue? I've been encountering pretty similar issue with implementation on my android app.

  • Hi Nafali, Claude, any update? I really gotta finish the implementation on my android app within a deadline. I still can't get it working and stuck with same error.

    Bikas Gaur
    showbox.onl mobdro.onl dltutuapp.com

  • @Bikas_Guar no, l still haven't resolved this issue. I tried to add library to my project and change the code myself. Managed to remove crashes, but it still has issues and it was not working properly.
    @Claude_Schlesser are there any updates on this issue?

Sign In or Register to comment.