本文介绍了这是 E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2ae2310 的错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是代码的一部分:

 EditText 用户,密码;@覆盖protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);用户 = (EditText) findViewById(R.id.user);密码 = (EditText) findViewById(R.id.pass);按钮 btn = (按钮) findViewById(R.id.btnLogin);}公共无效登录(查看 v){if(JavaLike.getString(user).equals("admin")&&JavaLike.getString(password).equals("admin")){Toast.makeText(MainActivity.this,"OK"+JavaLike.getString(user),Toast.LENGTH_LONG);}别的{Toast.makeText(MainActivity.this,"not OK"+JavaLike.getString(user),Toast.LENGTH_LONG);}}}

  • 08-27 20:21:51.239 2876-2902/com.example.pc.myapplication E/Surface:

    getSlotFromBufferLocked:未知缓冲区:0xaa972750 08-27 20:24:40.2809008-9055/com.example.pc.myapplication E/Surface:getSlotFromBufferLocked:未知缓冲区:0xaa96fd50 08-27 20:24:42.1989008-9055/com.example.pc.myapplication E/Surface:getSlotFromBufferLocked:未知缓冲区:0xaa970a00 08-27 20:26:32.7039008-9055/com.example.pc.myapplication E/Surface:getSlotFromBufferLocked:未知缓冲区:0xaa96fd50 08-27 20:26:34.6709008-9055/com.example.pc.myapplication E/Surface:getSlotFromBufferLocked:未知缓冲区:0xaa96fd50

解决方案

这是一个错误,已在 android 6.0.1 中修复,这里是包含更多信息的链接E/Surface:getSlotFromBufferLocked:未知缓冲区:0xab7519c0

this is a part from the code :

 EditText user,password;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
             user = (EditText) findViewById(R.id.user);
             password = (EditText) findViewById(R.id.pass);
            Button btn = (Button) findViewById(R.id.btnLogin);


        }

            public void login(View v){
                if(JavaLike.getString(user).equals("admin")&&JavaLike.getString(password).equals("admin")){
                    Toast.makeText(MainActivity.this,"OK"+JavaLike.getString(user),Toast.LENGTH_LONG);
                }
                else{
                    Toast.makeText(MainActivity.this,"not OK"+JavaLike.getString(user),Toast.LENGTH_LONG);
                }
            }

        }

  • 08-27 20:21:51.239 2876-2902/com.example.pc.myapplication E/Surface:

解决方案

This was a bug and has been fixed in android 6.0.1 ,here is a link with more infomationE/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0

这篇关于这是 E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2ae2310 的错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 15:38