【问题标题】:Is this a bug E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2ae2310?这是一个错误 E/Surface:getSlotFromBufferLocked:未知缓冲区:0xa2ae2310?
【发布时间】:2016-08-27 20:40:18
【问题描述】:

这是代码的一部分:

 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 电子/表面:

    getSlotFromBufferLocked:未知缓冲区:0xaa972750 08-27 20:24:40.280 9008-9055/com.example.pc.myapplication E/Surface: getSlotFromBufferLocked:未知缓冲区:0xaa96fd50 08-27 20:24:42.198 9008-9055/com.example.pc.myapplication E/Surface: getSlotFromBufferLocked:未知缓冲区:0xaa970a00 08-27 20:26:32.703 9008-9055/com.example.pc.myapplication E/Surface: getSlotFromBufferLocked:未知缓冲区:0xaa96fd50 08-27 20:26:34.670 9008-9055/com.example.pc.myapplication E/Surface: getSlotFromBufferLocked:未知缓冲区:0xaa96fd50

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    android:usesCleartextTraffic="true" 行添加到清单中的应用程序标记。

    【讨论】:

      【解决方案2】:

      这是一个错误,已在 android 6.0.1 中修复,这里是一个包含更多信息的链接 E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0

      【讨论】:

        猜你喜欢
        • 2023-03-08
        • 1970-01-01
        • 2016-10-30
        • 2016-11-29
        • 2015-12-10
        • 2014-03-01
        • 2016-02-16
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多