{"action":"created","issue":{"url":"https://api.github.com/repos/Estimote/Android-SDK/issues/106","labels_url":"https://api.github.com/repos/Estimote/Android-SDK/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/Estimote/Android-SDK/issues/106/comments","events_url":"https://api.github.com/repos/Estimote/Android-SDK/issues/106/events","html_url":"https://github.com/Estimote/Android-SDK/issues/106","id":64670289,"number":106,"title":"Some crashs NoClassDefFoundError and NullPointerException (need help)","user":{"login":"Marabita","id":1102623,"avatar_url":"https://avatars.githubusercontent.com/u/1102623?v=3","gravatar_id":"","url":"https://api.github.com/users/Marabita","html_url":"https://github.com/Marabita","followers_url":"https://api.github.com/users/Marabita/followers","following_url":"https://api.github.com/users/Marabita/following{/other_user}","gists_url":"https://api.github.com/users/Marabita/gists{/gist_id}","starred_url":"https://api.github.com/users/Marabita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marabita/subscriptions","organizations_url":"https://api.github.com/users/Marabita/orgs","repos_url":"https://api.github.com/users/Marabita/repos","events_url":"https://api.github.com/users/Marabita/events{/privacy}","received_events_url":"https://api.github.com/users/Marabita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-27T01:21:41Z","updated_at":"2015-03-27T14:04:53Z","closed_at":null,"body":"Hi all, \r\n\r\nOur application is using the SDK estimote and are having several errors of the same type:\r\nWe are not able to play using our devices, but is becoming critical to our application, I have serious problems to explain these crashes, you guys can help me?\r\n\r\n\r\nThe errors:\r\n\r\n[1]\r\njava.lang.NoClassDefFoundError\r\ncom.estimote.sdk.service.BeaconService.<init>(Unknown Source)\r\njava.lang.Class.newInstanceImpl(Native Method)\r\njava.lang.Class.newInstance(Class.java:1319)\r\nandroid.app.ActivityThread.handleCreateService(ActivityThread.java:2684)\r\nandroid.app.ActivityThread.access$1600(ActivityThread.java:162)\r\nandroid.app.ActivityThread$H.handleMessage(ActivityThread.java:1446)\r\nandroid.os.Handler.dispatchMessage(Handler.java:107)\r\nandroid.os.Looper.loop(Looper.java:194)\r\nandroid.app.ActivityThread.main(ActivityThread.java:5371)\r\njava.lang.reflect.Method.invokeNative(Native Method)\r\njava.lang.reflect.Method.invoke(Method.java:525)\r\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)\r\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\ndalvik.system.NativeStart.main(Native Method)\r\n\r\n[2]\r\njava.lang.NullPointerException\r\ncom.estimote.sdk.internal.Preconditions.checkNotNull(Preconditions.java:21)\r\ncom.estimote.sdk.service.BeaconService.startRanging(BeaconService.java:232)\r\ncom.estimote.sdk.service.BeaconService.access$1200(BeaconService.java:62)\r\ncom.estimote.sdk.service.BeaconService$IncomingHandler$1.run(BeaconService.java:473)\r\nandroid.os.Handler.handleCallback(Handler.java:739)\r\nandroid.os.Handler.dispatchMessage(Handler.java:95)\r\nandroid.os.Looper.loop(Looper.java:135)\r\nandroid.os.HandlerThread.run(HandlerThread.java:61)\r\n\r\n[3]\r\njava.lang.NoClassDefFoundError\r\ncom.estimote.sdk.BeaconManager.isBluetoothEnabled(Unknown Source)\r\n<mypackage>.beacon.a.b(Unknown Source)\r\n<mypackage>.onResume(Unknown Source)\r\nandroid.app.Instrumentation.callActivityOnResume(Instrumentation.java:1190)\r\nandroid.app.Activity.performResume(Activity.java:5200)\r\nandroid.app.ActivityThread.performResumeActivity(ActivityThread.java:2886)\r\nandroid.app.ActivityThread.handleResumeActivity(ActivityThread.java:2928)\r\nandroid.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)\r\nandroid.app.ActivityThread.access$600(ActivityThread.java:156)\r\nandroid.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)\r\nandroid.os.Handler.dispatchMessage(Handler.java:99)\r\nandroid.os.Looper.loop(Looper.java:153)\r\nandroid.app.ActivityThread.main(ActivityThread.java:5299)\r\njava.lang.reflect.Method.invokeNative(Native Method)\r\njava.lang.reflect.Method.invoke(Method.java:511)\r\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)\r\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\ndalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\nManifest declaration was:\r\n        <service\r\n            android:name=\"com.estimote.sdk.service.BeaconService\"\r\n            android:exported=\"false\" />\r\n\r\nI can not use the code below. Our application needs to work also for above devices from version 4.0:\r\n        <uses-feature android:name=“android.hardware.bluetooth_le”  android:required=“true” />\r\n\r\nI use a service to access the estimote service (yes i need this)\r\n\r\ntks\r\n\r\n\r\n![captura de tela 2015-03-26 as 22 22 44](https://cloud.githubusercontent.com/assets/1102623/6860417/be4d2cf2-d406-11e4-870b-813cbff910fd.png)\r\n\r\n![captura de tela 2015-03-26 as 22 25 18](https://cloud.githubusercontent.com/assets/1102623/6860455/17de69a2-d407-11e4-802a-eb82b0caefea.png)\r\n\r\n\r\ntoday before starting the estimote service I check for:\r\nBeaconManager.hasBluetooth\r\nBeaconManager.isBluetoothEnabled\r\n"},"comment":{"url":"https://api.github.com/repos/Estimote/Android-SDK/issues/comments/86949511","html_url":"https://github.com/Estimote/Android-SDK/issues/106#issuecomment-86949511","issue_url":"https://api.github.com/repos/Estimote/Android-SDK/issues/106","id":86949511,"user":{"login":"Marabita","id":1102623,"avatar_url":"https://avatars.githubusercontent.com/u/1102623?v=3","gravatar_id":"","url":"https://api.github.com/users/Marabita","html_url":"https://github.com/Marabita","followers_url":"https://api.github.com/users/Marabita/followers","following_url":"https://api.github.com/users/Marabita/following{/other_user}","gists_url":"https://api.github.com/users/Marabita/gists{/gist_id}","starred_url":"https://api.github.com/users/Marabita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marabita/subscriptions","organizations_url":"https://api.github.com/users/Marabita/orgs","repos_url":"https://api.github.com/users/Marabita/repos","events_url":"https://api.github.com/users/Marabita/events{/privacy}","received_events_url":"https://api.github.com/users/Marabita/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T14:04:53Z","updated_at":"2015-03-27T14:04:53Z","body":"Hi Wiktor,\r\n\r\nI'm using android studio, the latest version of jar (date: Nov 12, 2014), I only added the library within the libs folder, and with the command: compile filetree (dir: 'libs', include: [' *. jar '])\r\n\r\nIs working normal for devices with newer android (4.3 or higher) detecting beacons correctly\r\n\r\n![captura de tela 2015-03-27 as 11 04 12](https://cloud.githubusercontent.com/assets/1102623/6869196/12c99bfc-d471-11e4-992d-8af70e36aeac.png)\r\n"}}