x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android Launch: java.lang.ClassNotFoundException

I have released my game on Android. And I have changed the manifest information as you see below.

But I am getting crashes 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.

CHANGES I MADE 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"/>

HERE IS ERROR CODE FROM GOOGLE PLAY:

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)

Product Version: Not Selected
Tags:
more ▼

asked Nov 14 '14 at 03:14 PM in Packaging & Deployment

avatar image

DreamBotStudios
146 32 48 53

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.

more ▼

answered Apr 08 '15 at 09:12 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question