Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Natty crashes on signed builds #209

Closed
azurh opened this issue Jan 18, 2017 · 1 comment
Closed

Natty crashes on signed builds #209

azurh opened this issue Jan 18, 2017 · 1 comment

Comments

@azurh
Copy link

azurh commented Jan 18, 2017

The Natty parser works well on debug builds, but crashes on signed ones.

It worked perfectly a year ago.
Now, I tried many possible combinations for including this library in my app (Maven, local .jar etc.)

01-18 13:56:53.820 23329-23329/com.zaphiry.android E/CrashlyticsCore: Failed to execute task.
                                                                        java.util.concurrent.TimeoutException
                                                                            at java.util.concurrent.FutureTask.get(FutureTask.java:177)
                                                                            at com.crashlytics.android.core.CrashlyticsExecutorServiceWrapper.executeSyncLoggingException(CrashlyticsExecutorServiceWrapper.java:44)
                                                                            at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:251)
                                                                            at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
                                                                            at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
01-18 13:56:53.821 23329-23329/com.zaphiry.android E/AndroidRuntime: FATAL EXCEPTION: main
                                                                       Process: com.zaphiry.android, PID: 23329
                                                                       java.lang.NoClassDefFoundError: Failed resolution of: Lcom/joestelmach/natty/Parser;
                                                                           at com.tww.six.SplashActivity.onCreate(SplashActivity.java:59)
                                                                           at android.app.Activity.performCreate(Activity.java:6251)
                                                                           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
                                                                           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
                                                                           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                                                                           at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                                           at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                           at android.os.Looper.loop(Looper.java:148)
                                                                           at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                                           at java.lang.reflect.Method.invoke(Native Method)
                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                                        Caused by: java.lang.ClassNotFoundException: Didn't find class "com.joestelmach.natty.Parser" on path: DexPathList[[zip file "/data/app/com.zaphiry.android-2/base.apk"],nativeLibraryDirectories=[/data/app/com.zaphiry.android-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.tww.six.SplashActivity.onCreate(SplashActivity.java:59) 
                                                                           at android.app.Activity.performCreate(Activity.java:6251) 
                                                                           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
                                                                           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
                                                                           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
                                                                           at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
                                                                           at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                           at android.os.Looper.loop(Looper.java:148) 
                                                                           at android.app.ActivityThread.main(ActivityThread.java:5417) 
                                                                           at java.lang.reflect.Method.invoke(Native Method) 
                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
                                                                       	Suppressed: java.lang.ClassNotFoundException: com.joestelmach.natty.Parser
                                                                           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

@azurh
Copy link
Author

azurh commented Jan 19, 2017

I finally have managed to include Natty in my app. I went to the Maven repository, searched for Natty, and then downloaded all the jar dependencies (which are listed).

Now my dependencies look like this:

// natty
compile files('libs/natty/ical4j-2.0.0.jar')
compile files('libs/natty/antlr-runtime-3.5.2.jar')
compile files('libs/natty/natty-0.12.jar')
compile files('libs/natty/slf4j-android-1.7.22.jar')
compile files('libs/natty/slf4j-api-1.7.22.jar')

@azurh azurh closed this as completed Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant