logcat

LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an application that uses the Google Maps Android v2 API. I've added the google-play-services_lib library project to my workspace and added a reference to it from my application project, following the instructions on these pages: http://developer.android.com/google/play-services/setup.html . https://developers.google.com/maps/documentation/android/start Everything seems to work fine: The app displays maps and overlays with the default markers. So I'm pretty sure I've got the Google Play services and Google Maps API stuff set up

Why LogCat is full of errors?

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to make an android app clear of any mistakes and errors. I definitely sure, these are not my mistakes. Of course, there might be different system info messages. But I set the log level to value 'Warn'!!! And after that I still see many strings. They simultaneously fill the log window. For an example: 01-21 20:47:13.336 449-858/? W/SchedPolicy: add_tid_to_cgroup failed to write '15944', len = 5, fd = 34, err = 3 01-21 20:47:13.351 15945-15945/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app

LogCat errors when Compiling App

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When i compile the app these errors show: sqlite returned: error code = 1, msg = table mensagens already exists Failure 1 (table mensagens already exists) on 0x240328 when preparing 'create table mensagens(mensagemsalva varchar(250),mensagemenviada varchar(250))'. sqlite returned: error code = 1, msg = table contatos already exists Failure 1 (table contatos already exists) on 0x240328 when preparing 'create table contatos(nome varchar(50),telefone varchar(20))'. My Main.java has this code which is meant to create the database and its tables:

logcat命令详解

匿名 (未验证) 提交于 2019-12-03 00:40:02
转载自:https://blog.csdn.net/hudashi/article/details/7062914 Android日志系统提供了记录和查看系统调试信息的功能。日志都是从各种软件和一些系统的缓冲区中记录下来的,缓冲区可以通过logcat命令来查看和使用. 在使用 logcat 之前,请确保手机的 USB调试模式 已经开启,可以通过" Setting->Application->Development-> USB debugging "来开启。 logcat 本身是android的 shell 的一个命令,你可以通过“ adb shell ”进入 shell 后执行 logcat 命令,也可以通过" adb logcat "直接运行。 语法: [adb] logcat [<option>] ... [<filter-spec>] ... 选项 : -b <buffer> 指定要查看的日志缓冲区,可以是 system , events , radio,main . 默认值是 system和main 。 -c 清楚屏幕上的日志. -d 输出日志到屏幕上. -f <filename> 指定输出日志信息的<filename> ,默认是stdout . -g 输出指定的日志缓冲区,输出后退出. -n <count> 设置日志的最大数目<count> .,默认值是4,需要和 -r

如何过滤 adb logcat 输出

匿名 (未验证) 提交于 2019-12-03 00:37:01
如何过滤 adb logcat 输出 1)window无法直接使用grep 过滤文本文件,但是window有自己内置的处理文本文件的方式,是findstr 如: 参考:http://www.ghost580.com/win10/2018-05-05/24529.html GREP for Windows 解压缩,配置内置变量 具体使用 如: 参考:https://blog.csdn.net/chengfans/article/details/53784936 文章来源: 如何过滤 adb logcat 输出

LogCat entry meaning 2

放肆的年华 提交于 2019-12-02 23:52:55
问题 I don't now the meaning of this LogCat entry. Can someone help me? 12-26 18:33:09.651: E/AndroidRuntime(26038): FATAL EXCEPTION: main 12-26 18:33:09.651: E/AndroidRuntime(26038): java.lang.NullPointerException 12-26 18:33:09.651: E/AndroidRuntime(26038): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394) 12-26 18:33:09.651: E/AndroidRuntime(26038): at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362) 12-26 18:33:09.651: E/AndroidRuntime(26038): at android

Can logcat be used to log NDK code in Android? Or what are logging options from NDK?

巧了我就是萌 提交于 2019-12-02 23:16:59
How would one write logs from inside Native code in Android (NDK)? What are the available options? For example, can logcat be used from inside of NDK to write logs? Or since its more upper level in android, it can not be accessible from NDK? At the moment I am just aware of writing times from C code with: millis = System.currentTimeMillis(); And with function that would write this time plus any messages to a custom log file. AnkitSomani You can use the Android logging #include <android/log.h> #define APPNAME "MyApp" __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "My Log"); Also Make sure

adb工具的使用方法详解

匿名 (未验证) 提交于 2019-12-02 22:56:40
抓内核日志方法: 1、用usb线连接电脑与板卡上的靠近耳机孔的usb口。 2、在板卡系统设置菜单中选中connect to PC,并在开发者选项中选中usb调试。 3、在电脑端开启诸如豌豆荚之类的软件,让电脑识别到板卡。 4、电脑cmd进入到adb命令行,键入 adb shell 5、键入 ls mnt,查看mnt下sdcard对应的目录名, 一般为sdcard或internal_sd 6、键入 dmesg > /mnt/sdcard/kernel.txt 或 dmesg > /mnt/internal_sd/kernel.txt,回车 7、同时按下 ctrl + C 8、键入 adb pull /mnt/sdcard/kernel.txt 或 adb pull /mnt/internal_sd/kernel.txt,回车 9、在cmd命令的当前目录下就有kernel.txt日志文件了。 10、将kernel.txt文件传回! 抓android日志方法: 1、用usb线连接电脑与板卡上的靠近耳机孔的usb口。 2、在板卡系统设置菜单中选中connect to PC,并在开发者选项中选中usb调试。 3、在电脑端开启诸如豌豆荚之类的软件,让电脑识别到板卡。 4、电脑cmd进入到adb命令行,键入 adb shell 5、键入 ls mnt,查看mnt下sdcard对应的目录名,

Android logcat “application” column is always empty

旧时模样 提交于 2019-12-02 22:09:02
Android logcat "application" column is always empty. I have latest version of android tools. aij I tried all the other suggestions here and none of them worked. For me, the application is shown when running on the emulator, but not on my Galaxy Nexus. It turns out I needed to add android:debuggable="true" to <application> in my AndroiManifest.xml . See http://developer.android.com/guide/topics/manifest/application-element.html . People who use Eclipse don't see this problem because apparently Eclipse enables debugging automatically according to http://developer.android.com/tools/device.html .