欢迎关注公众号,每天推送Android技术文章,二维码如下:(可扫描)


今天运行一个小程序,退出的时候竟然打出一条错误log日志。一时慌乱,在国内网站也没找到合适的答复。通过查看国外的网站终于查到了原因。先看一下国外这个哥们是什么情况:

I want to make a simple login and register app, so the user can create an account. (name, username, password)I use WAMP and a MYSQL database where I store the accounts.

When I fill in the user info on the registration form and click register I get the following error:

大致意思是:

我想打一个简单的登录和注册应用程序,使用户可以创建一个帐户。 (姓名,用户名,密码)我使用WAMP和MySQL数据库,我存储账户。

当我填写登记表上的用户信息,然后点击注册我得到以下错误:

getSlotFromBufferLocked: unknown buffer: 0xab7115e0
回答是这么回答的:

I believe that this is Marshmallow specific. Are you using a Marshmallow device?

I've noticed this error is printed out every time I switch between applications (doesn't matter which) or exit out of them, and when activities are destroyed.

I've tried running the same apps on two Nexus 5s - one running Lollipop and the other Marshmallow, and these log prints only appeared on the Marshmallow version - with every app, not just the one I'm building.

Not sure why this happens, but I opened a report  here.

大致意思是棒棒糖(应该是安卓6.0),都会出现这个情况。用另一款Nexus 5s(棉花糖的版本)就没事。我自己修改了一下,果然神奇!

这就是大致的错误原因,换一个模拟器就ok了。


更多相关文章

  1. android中ListActivity使用记录Your content must have a ListVi
  2. 丢失Android系统库或者Conversion to Dalvik format failed with
  3. adb错误:Failed to execute android command 'adb devices'.
  4. Android上的bug定位(troubleshooting)
  5. Android(安卓)内容提供者ContentProvider
  6. Android(安卓)FileProvider配置报错android.content.pm.Provider
  7. Android(安卓)7.0版本升级解析包错误
  8. android service
  9. 【android错误收集】android.view.InflateException

随机推荐

  1. Android Material Design 进度条 自定义
  2. [原创]Android(安卓)init.rc文件解析过程
  3. 工作总结
  4. Android数据储存之SharedPreferences
  5. 两分钟彻底让你明白Android(安卓)Activit
  6. android去除状态栏和下面视图之前的黑线
  7. 在Android中使用Timer,并创建一个应用程序
  8. android中设置activity的出现方式
  9. android之4.0控件switch自定义开关滑块、
  10. Android退出程序的多种方法