I got a long list of errors only when importing my Unity gradle into android studio. I think it may be an issue with the way I imported the files. If that is the issue, what would be the best way to transfer the project from unity to android studio? Any advice is appreciated.
2019-01-26 15:33:37.700 1522-1533/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
2019-01-26 15:33:37.700 1522-1533/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
2019-01-26 15:33:37.700 1522-1533/? E/vold: Failed to chmod /data/media/0: No such file or directory
2019-01-26 15:34:13.500 1700-1732/? E/storaged: getService package_native failed
2019-01-26 15:34:13.504 1700-1732/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
2019-01-26 15:34:18.575 1700-1732/? E/storaged: getService package_native failed
2019-01-26 15:34:42.877 1522-1533/? E/vold: Failed to read field SystemLocale: No such file or directory
2019-01-26 15:34:55.456 1590-1590/? E/android.hardware.wifi#1.0-service: Failed to register radio mode change callback
2019-01-26 15:34:55.538 1590-1590/? E/android.hardware.wifi#1.0-service: Failed to set DFS flag; DFS channels may be unavailable.
2019-01-26 15:34:55.548 1701-1701/? E/wificond: No Offload Service available
2019-01-26 15:35:13.683 2088-2195/? E/ActivityThread: Failed to find provider info for com.android.contacts
2019-01-26 15:35:19.833 1700-1732/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
2019-01-26 15:35:20.303 1974-2211/? E/ActivityThread: Failed to find provider info for com.android.contacts
2019-01-26 15:35:21.181 1974-2211/? E/ActivityThread: Failed to find provider info for com.android.contacts
2019-01-26 15:35:21.489 1974-2209/? E/ActivityThread: Failed to find provider info for com.android.contacts
2019-01-26 15:35:25.422 2304-2304/? E/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
2019-01-26 15:35:25.634 2304-2304/? E/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
2019-01-26 15:35:25.680 2304-2304/? E/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
2019-01-26 15:35:25.680 2304-2304/? E/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
2019-01-26 15:35:25.682 2304-2304/? E/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
2019-01-26 15:35:25.682 2304-2304/? E/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
2019-01-26 15:36:19.835 1700-1732/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
2019-01-26 15:36:24.102 2450-2497/? E/ActivityThread: Failed to find provider info for com.google.android.as.allapps.actionsettingprovider
2019-01-26 15:36:24.941 2450-2450/? E/SchedPolicy: set_timerslack_ns write failed: Operation not permitted
2019-01-26 15:36:58.617 2998-2998/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.nested.roloffbenjamin.plz, PID: 2998
java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.nested.roloffbenjamin.plz.MainActivity.stringFromJNI()
When building your project to Android in Unity, there is a setting to Export Project. This will generate you a valid Gradle Project that you can open with Android Studio. Here are the official docs.
I am trying to compile the android app and getting this error, tried cleaning, rebuilding, deleting and creating new AVD but nothing working, help would be appreciated
08-30 12:52:20.508 1507-1518/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
Failed to chmod /data/misc_ce/0: No such file or directory
Failed to chmod /data/media/0: No such file or directory
08-30 12:52:32.317 1810-1828/? E/BatteryExternalStatsWorker: no controller energy info supplied for telephony
08-30 12:52:32.323 1810-1828/? E/KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
08-30 12:52:32.412 1810-1832/? E/LocalDisplayAdapter: Default and active color mode is no longer available! Reverting to first available mode.
08-30 12:52:33.696 1675-1780/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-30 12:52:34.031 1810-1822/? E/SystemServer: Unable to preload default resources
08-30 12:52:36.132 1507-1516/? E/vold: Failed to read field SystemLocale: Success
08-30 12:52:36.134 1810-1888/? E/StorageManagerService: Failed to read field SystemLocale
android.os.ServiceSpecificException: Failed to read field SystemLocale (code 0)
at android.os.Parcel.createException(Parcel.java:1956)
at android.os.Parcel.readException(Parcel.java:1910)
at android.os.Parcel.readException(Parcel.java:1860)
at android.os.IVold$Stub$Proxy.fdeGetField(IVold.java:1094)
at com.android.server.StorageManagerService.getField(StorageManagerService.java:2408)
at com.android.server.StorageManagerService.copyLocaleFromMountService(StorageManagerService.java:982)
at com.android.server.StorageManagerService.handleDaemonConnected(StorageManagerService.java:975)
at com.android.server.StorageManagerService.access$900(StorageManagerService.java:171)
at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:572)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
08-30 12:52:36.960 1810-1810/? E/UsbDeviceManager: failed to write to /sys/class/android_usb/android0/f_rndis/ethaddr
08-30 12:52:36.969 1810-1810/? E/UsbDeviceManager: Failed to open control for mtp
Failed to open control for mtp
08-30 12:52:36.988 1810-1810/? E/UsbDeviceManager: Error initializing UsbHandler
java.io.FileNotFoundException: /sys/class/android_usb/android0/state (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:231)
at java.io.FileInputStream.<init>(FileInputStream.java:165)
at android.os.FileUtils.readTextFile(FileUtils.java:514)
at com.android.server.usb.UsbDeviceManager$UsbHandlerLegacy.<init>(UsbDeviceManager.java:1375)
at com.android.server.usb.UsbDeviceManager.<init>(UsbDeviceManager.java:297)
at com.android.server.usb.UsbService.<init>(UsbService.java:139)
at com.android.server.usb.UsbService$Lifecycle.onStart(UsbService.java:73)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:126)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:113)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:72)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:1299)
at com.android.server.SystemServer.run(SystemServer.java:431)
at com.android.server.SystemServer.main(SystemServer.java:294)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)
08-30 12:52:36.996 1810-1810/? E/UsbPortManager: connectToProxy: usb hal service not found. Did the service fail to start?
I am new to Android Studio and Android programming and am attempting to follow a how to lesson. I am having a lot of trouble following Android Studio Logcat because it is not as straightforward to me as any IDEs have used. Could someone please decode what things mean in my errors? I need to learn how to use Logcat since the explanations I see online are too simplified and do not cover much.
What exactly is:"2359-13990/"?
How do I find the place in the code that caused the errors?
What exactly does my error output from Logcat mean?
Due to the space limit, I have changed my post and now have only errors instead of verbose. Here are my errors in Logcat:
06-21 21:11:46.347 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3105, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:46.348 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:46.348 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:46.349 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:11:47.142 29992-29992/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.185 29992-29992/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.185 29992-29992/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:47.398 30006-30006/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.440 30006-30006/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.440 30006-30006/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:47.770 30029-30029/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.811 30029-30029/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.812 30029-30029/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.172 30041-30041/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:49.227 30046-30046/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:49.229 30041-30041/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:49.229 30041-30041/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.279 30046-30046/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:49.279 30046-30046/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.331 30063-30070/? E/art: Failed sending reply to debugger: Broken pipe
06-21 21:11:52.997 30063-30063/com.example.android.sunshine E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.sunshine, PID: 30063
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.sunshine/com.example.android.sunshine.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at com.example.android.sunshine.MainActivity$FetchWeatherTask.onPreExecute(MainActivity.java:97)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:620)
at android.os.AsyncTask.execute(AsyncTask.java:567)
at com.example.android.sunshine.MainActivity.loadWeatherData(MainActivity.java:74)
at com.example.android.sunshine.MainActivity.onCreate(MainActivity.java:63)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
06-21 21:11:53.668 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3113, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3121, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:58.690 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:03.709 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3129, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:03.711 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:03.712 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:03.712 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3137, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:13.764 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3145, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:13.764 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:13.765 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:13.765 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3153, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:18.791 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3161, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
You look for your package name (if you have not selected your project in the dropdown for logging). In you case I suppose its "com.example.android.sunshine".
Just after your package name you will find the exception and more details.
ComponentInfo{com.example.android.sunshine/com.example.android.sunshine.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void'
Below that you can find stacktrace. In that stacktrace again find your package name and you will find exact line where error occurred.
com.example.android.sunshine.MainActivity$FetchWeatherTask.onPreExecute(MainActivity.java:97)
04-21 02:27:40.341: E/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
04-21 02:27:40.341: E/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
04-21 02:27:40.341: E/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
04-21 02:27:40.341: E/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
04-21 02:27:49.111: E/BatteryService(52): usbOnlinePath not found
04-21 02:27:49.111: E/BatteryService(52): batteryVoltagePath not found
04-21 02:27:49.111: E/BatteryService(52): batteryTemperaturePath not found
04-21 02:27:49.111: E/SurfaceFlinger(52): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-21 02:27:52.211: E/EventHub(52): could not get driver version for /dev/input/mouse0, Not a typewriter
04-21 02:27:52.211: E/EventHub(52): could not get driver version for /dev/input/mice, Not a typewriter
04-21 02:27:53.231: E/System(52): Failure starting core service
04-21 02:27:53.231: E/System(52): java.lang.SecurityException
04-21 02:27:53.231: E/System(52): at android.os.BinderProxy.transact(Native Method)
04-21 02:27:53.231: E/System(52): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-21 02:27:53.231: E/System(52): at android.os.ServiceManager.addService(ServiceManager.java:72)
04-21 02:27:53.231: E/System(52): at com.android.server.ServerThread.run(SystemServer.java:176)
04-21 02:27:53.251: E/AndroidRuntime(52): Crash logging skipped, no checkin service
04-21 02:28:01.915: E/ActivityThread(102): Failed to find provider info for android.server.checkin
04-21 02:28:03.255: E/ActivityThread(102): Failed to find provider info for android.server.checkin
04-21 02:28:03.325: E/ActivityThread(102): Failed to find provider info for android.server.checkin
04-21 02:28:05.265: E/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound
04-21 02:28:05.295: E/MediaPlayer(52): Unable to to create media player
04-21 02:28:13.005: E/AndroidRuntime(131): ERROR: thread attach failed
04-21 02:28:14.785: E/AndroidRuntime(210): ERROR: thread attach failed
04-21 02:28:14.975: E/jdwp(222): Failed sending req to debugger: Broken pipe (-1 of 27)
04-21 02:28:14.975: E/jdwp(222): Failed sending req to debugger: Broken pipe (-1 of 27)
04-21 02:28:14.975: E/jdwp(222): Failed sending reply to debugger: Broken pipe
I think the problem is in your native function signature. You should decare it with JNIEXPORT and JNICALL.
Use the javah tool for generating header and source files.
Here is example: JNI Example
And next time try to find some related answers like java-lang-unsatisfiedlinkerror before asking another question.
07-03 23:59:01.067: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
07-03 23:59:28.297: ERROR/BatteryService(60): usbOnlinePath not found
07-03 23:59:28.307: ERROR/BatteryService(60): batteryVoltagePath not found
07-03 23:59:28.307: ERROR/BatteryService(60): batteryTemperaturePath not found
07-03 23:59:28.407: ERROR/SurfaceFlinger(60): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-03 23:59:39.097: ERROR/EventHub(60): could not get driver version for /dev/input/mouse0, Not a typewriter
07-03 23:59:39.137: ERROR/EventHub(60): could not get driver version for /dev/input/mice, Not a typewriter
07-03 23:59:39.777: ERROR/System(60): Failure starting core service
07-03 23:59:39.777: ERROR/System(60): java.lang.SecurityException
07-03 23:59:39.777: ERROR/System(60): at android.os.BinderProxy.transact(Native Method)
07-03 23:59:39.777: ERROR/System(60): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-03 23:59:39.777: ERROR/System(60): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-03 23:59:39.777: ERROR/System(60): at com.android.server.ServerThread.run(SystemServer.java:176)
07-03 23:59:39.837: ERROR/AndroidRuntime(60): Crash logging skipped, no checkin service
07-04 00:00:00.400: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
07-04 00:00:01.147: ERROR/MediaPlayerService(30): Couldn't open fd for content://settings/system/notification_sound
07-04 00:00:01.227: ERROR/MediaPlayer(60): Unable to to create media player
07-04 00:00:06.315: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:11.615: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:12.124: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:35.335: ERROR/AndroidRuntime(126): ERROR: thread attach failed
07-04 00:00:42.835: ERROR/AndroidRuntime(211): ERROR: thread attach failed
I'm assuming that you're working on Android, and that you're also referring to the exception in the middle of the log.
The SecurityException means you probably forgot to give the application the necessary permissions - you should change the Manifest XML file, as explained here.