Announcement

Collapse
No announcement yet.

Anyone Know How To Fix java.lang.ClassNotFoundException Crash In Google Play?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Anyone Know How To Fix java.lang.ClassNotFoundException Crash In Google Play?

    I have released my game on Android Google Play. And I have changed the manifest information as you see below.
    But I am getting crashes in Google Play, when people try loading the game saying:

    java.lang.ClassNotFoundException in dalvik.system.BaseDexClassLoader.findClass

    Also I read in this forum post from Michael Noland about... "but there might be issues with where the activity java file ends up"
    I believe I have this issue, but have no idea on how to fix the error or make sure I am using the correct location to find the java file.

    Any help would be appreciated, thank you.

    IN THE MANIFEST:

    I changed:

    from... package="com.epicgames.${EXECUTABLE_NAME}"
    to... package="com.dreambotstudios.${EXECUTABLE_NAME}"

    from... activity android:name="com.epicgames.ue4.GameActivity"
    to... activity android:name="com.dreambotstudios.ue4.GameActivity"

    from... meta-data android:name="com.epicgames.ue4.GameActivity.DepthBufferPreference" android:value="0"/>
    to... meta-data android:name="com.dreambotstudios.ue4.GameActivity.DepthBufferPreference" android:value="0"/>

    IN GOOGLE PLAY CRASH
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.dreambotstudios.BlitzBoom/com.dreambotstudios.ue4.GameActivity}: java.lang.ClassNotFoundException: Didn't find class "com.dreambotstudios.ue4.GameActivity" on path: DexPathList[[zip file "/data/app/com.dreambotstudios.BlitzBoom-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.dreambotstudios.BlitzBoom-1, /vendor/lib, /system/lib]]
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
    at android.app.ActivityThread.access$900(ActivityThread.java:161)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:157)
    at android.app.ActivityThread.main(ActivityThread.java:5356)
    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:1265)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dreambotstudios.ue4.GameActivity" on path: DexPathList[[zip file "/data/app/com.dreambotstudios.BlitzBoom-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.dreambotstudios.BlitzBoom-1, /vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2222)

    I also posted in AnswerHub this question...
    https://answers.unrealengine.com/que...exception.html
    Never coded or did game art/animation. 5 months later Eye Guy 1.0 was born thanks to UE4.

    You can read my story of how I went from no coding, art or animation to releasing a full game with UE4.
Working...
X