AndroidJavaException: java.lang.ClassNotFoundException: inappbrowser.kokosoft.co

Welcome! Forums Unity Plugins In-App Web Browser AndroidJavaException: java.lang.ClassNotFoundException: inappbrowser.kokosoft.co

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2176
    cyberben3d
    Participant

    I build the sample scene “ExampleScene” to Android. When I click Open google.com! nothing happens. If I look at the log using adb it says this:

    08-17 15:28:28.514 14475 14532 E Unity : AndroidJavaException: java.lang.ClassNotFoundException: inappbrowser.kokosoft.com.Helper
    08-17 15:28:28.514 14475 14532 E Unity : java.lang.ClassNotFoundException: inappbrowser.kokosoft.com.Helper
    08-17 15:28:28.514 14475 14532 E Unity : at java.lang.Class.classForName(Native Method)
    08-17 15:28:28.514 14475 14532 E Unity : at java.lang.Class.forName(Class.java:454)
    08-17 15:28:28.514 14475 14532 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    08-17 15:28:28.514 14475 14532 E Unity : at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
    08-17 15:28:28.514 14475 14532 E Unity : at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:83)
    08-17 15:28:28.514 14475 14532 E Unity : at android.os.Handler.dispatchMessage(Handler.java:103)
    08-17 15:28:28.514 14475 14532 E Unity : at android.os.Looper.loop(Looper.java:214)
    08-17 15:28:28.514 14475 14532 E Unity : at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
    08-17 15:28:28.514 14475 14532 E Unity : Caused by: java.lang.ClassNotFoundException: inappbrowser.kokosoft.com.Helper

    #2177
    PiotrPiotr
    Keymaster

    Did you import jar file from Plugins/Android? It seems it isn’t part of your build.

    #2179
    cyberben3d
    Participant

    Yes, I mean it’s sitting there in the plugins folder. And the checkmark for Android platform is set. How can I make sure it makes it into the build? I made a separate test project and it worked fine in a fresh project. But this is a complex project with lots of other jars. I have Firebase for example. Is it the Android manifest?

    #2180
    cyberben3d
    Participant

    I figured it out. My project is set under Publishing Settings to Minify using Proguard. That seems to cause the problem. I only enabled that because the instructions for Firebase set to do it. Hopefully setting it to None won’t be an issue.

    #2183
    PiotrPiotr
    Keymaster

    You probably should disable proguard for running against inappbrowser packages and left it for rest of the app.

    #11892
    it.dadkhahit.dadkhah
    Participant

    Which checkmark did you uncheck exactly? I have the same problem.
    InAppBrowser.jar exists in the Plugins/Android folder. Also I reimported InAppBrowser again. But it didn’t work.

    • This reply was modified 2 years, 7 months ago by it.dadkhahit.dadkhah.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.