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

java.lang.NoClassDefFoundError: org.altbeacon.beacon.logging.Loggers #522

Closed
jmvines opened this issue Jun 2, 2017 · 3 comments
Closed

Comments

@jmvines
Copy link

jmvines commented Jun 2, 2017

Expected behavior

not exception

Actual behavior

E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at org.altbeacon.beacon.powersave.BackgroundPowerSaver.(BackgroundPowerSaver.java:44)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4590)
at android.app.ActivityThread.access$1400(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: org.altbeacon.beacon.logging.Loggers
at org.altbeacon.beacon.logging.LogManager.(LogManager.java:27)
at org.altbeacon.beacon.powersave.BackgroundPowerSaver.(BackgroundPowerSaver.java:44) 

Steps to reproduce this behavior

when call new BackgroundPowerSaver(this);

Mobile device model and OS version

alps m4 SS4045 4.2

Android Beacon Library version

2.10

@davidgyoung
Copy link
Member

I have heard a number of reports of this problem that were caused by apps using libraries that run a service in a separate process like Google Cloud Messaging and Nokia Here Maps. You may not even be aware that you are using a library that does this.

A fix for this was put in #479 and is available for testing in this binary release:

https://github.com/AltBeacon/android-beacon-library/releases/tag/2.11-beta1

@jmvines, please try that release and let me know if it solves your problem.

@jmvines
Copy link
Author

jmvines commented Jun 5, 2017

Thanks for your response @davidgyoung .

i will tell you if this problem is solved with this fix.

Regards.

@davidgyoung
Copy link
Member

This fix described has been released in 2.11. Please reopen if that does not solve the problem.

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

2 participants