Android Errors trying to load a url

Welcome! Forums Unity Plugins In-App Web Browser Android Errors trying to load a url

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #418
    trueicecold
    Participant

    When using the example “ExampleScene.unity”, clicking on the button causes errors:

    <i>AndroidPlayer(samsung_SM-N920C@10.0.0.24)</i> AndroidJavaException: java.lang.ClassNotFoundException: inappbrowser.kokosoft.com.Helper java.lang.ClassNotFoundException: inappbrowser.kokosoft.com.Helper at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at java.lang.Class.forName(Class.java:285) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.c(Unknown Source) at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:158) at com.unity3d.player.UnityPlayer$c.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: Didn't find class "inappbrowser.kokosoft.com.Helper" on path: DexPathList[[zip file "/data/app/com.rrr.tests-2/base.apk"],nativeLibraryDirectories=[/data/app/com.rrr.tests-2/lib/arm, /data/app/com.rrr.tests-2/base.apk!/lib/armeabi-v7a, /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) ... 9 more Suppressed: java.lang.ClassNotFoundException: Didn't find class "inappbrowser.kokosoft.com.Helper" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex"],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:504) ... 10 more Suppressed: java.lang.ClassNotFoundException: inappbrowser.kokosoft.com.Helper 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) ... 11 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available at UnityEngine.AndroidJNISafe.CheckException () [0x0008c] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs:24 at UnityEngine.AndroidJNISafe.CallStaticObjectMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00011] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs:207 at UnityEngine.AndroidJavaObject._CallStatic[AndroidJavaObject] (System.String methodName, System.Object[] args) [0x002d8] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:460 at UnityEngine.AndroidJavaObject.CallStatic[AndroidJavaObject] (System.String methodName, System.Object[] args) [0x00004] in /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/AndroidJavaBindings.gen.cs:82 at UnityEngine.AndroidJavaObject.FindClass (System.String name) [0x0001e] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:591 at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00013] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:611 at UnityEngine.AndroidJavaClass..ctor (System.String className) [0x00009] in /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/AndroidJavaBindings.gen.cs:92 at InAppBrowser+AndroidInAppBrowser.GetInAppBrowserHelper () [0x00006] in C:\Private\New Unity Project\Assets\UCloaker\InAppBrowser\Scripts\InAppBrowser.cs:162 at InAppBrowser+AndroidInAppBrowser.OpenURL (System.String URL, DisplayOptions displayOptions) [0x00007] in C:\Private\New Unity Project\Assets\UCloaker\InAppBrowser\Scripts\InAppBrowser.cs:127 at InAppBrowser.OpenURL (System.String URL, DisplayOptions displayOptions) [0x00003] in C:\Private\New Unity Project\Assets\UCloaker\InAppBrowser\Scripts\InAppBrowser.cs:78 at BrowserOpener.OnButtonClicked () [0x00024] in C:\Private\New Unity Project\Assets\UCloaker\InAppBrowser\Example\BrowserOpener.cs:14 at UnityEngine.Events.InvokableCall.Invoke () [0x00017] in /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent.cs:165 at UnityEngine.Events.UnityEvent.Invoke () [0x00024] in /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:58 at UnityEngine.UI.Button.Press () [0x0002d] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Button.cs:36 at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00012] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Button.cs:45 at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:50 at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction1 functor) [0x00073] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:261 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:265) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:318) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:228) UnityEngine.EventSystems.StandaloneInputModule:Process() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:211) UnityEngine.EventSystems.EventSystem:Update() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:294) (Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs Line: 24)

    I also got them when using my own code. Opening to an external browser worked, when I just replace the lines to the inappbrowser, I got the same errors…

    Thanks!

    #419
    PiotrPiotr
    Keymaster

    Hey,
    It seems you are missing files from Plugins/Android directory. Did asset store import file correctly for you? It’s extremely buggy when it comes to that.

    #420
    trueicecold
    Participant

    Indeed, For some reason I removed this folder when moving projects. All works as expected (Android only for now).

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.