Error Opencv4Android: Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit
Hi!!
I'm programming in Android Lollipop and i had this exception running OpenCV. Previously I ran the same program in JellyBean and worked properly. Anyone know how to fix this error?
Thanks, and sorry by the english.
02-03 17:15:09.340 11168-11168/com.example.ueliton.helloopencv E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.ueliton.helloopencv, PID: 11168 java.lang.RuntimeException: Unable to resume activity {com.example.ueliton.helloopencv/com.example.ueliton.helloopencv.MainActivity}: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=org.opencv.engine.BIND } at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2995) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3030) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2393) at android.app.ActivityThread.access$800(ActivityThread.java:148) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5312) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696) Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=org.opencv.engine.BIND } at android.app.ContextImpl.validateServiceIntent(ContextImpl.java:1808) at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1907) at android.app.ContextImpl.bindService(ContextImpl.java:1885) at android.content.ContextWrapper.bindService(ContextWrapper.java:538) at org.opencv.android.AsyncServiceHelper.initOpenCV(AsyncServiceHelper.java:24) at org.opencv.android.OpenCVLoader.initAsync(OpenCVLoader.java:85) at com.example.ueliton.helloopencv.MainActivity.onResume(MainActivity.java:49) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1264) at android.app.Activity.performResume(Activity.java:6039) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2978) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3030) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2393) at android.app.ActivityThread.access$800(ActivityThread.java:148) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5312) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)