首页 > 解决方案 > 我在尝试记录输出时收到“E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1”错误

问题描述

我正在学习 Kotlin 并尝试记录我尝试过的事情的输出,但我明白了

E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping 对 device_type=5 失败,ret=-1

错误信息

package com.example.intro_to_kotlin

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log


class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        
        var todaysDate: Int = 27
        todaysDate = 28
        var dateString = todaysDate.toString()
        Log.d("Main Activity", dateString) //I believe the issue is here where I tried to log the 
                                           //the output of dateString
        val daysInMArch: Int = 31

    }
}

标签: androidandroid-studiokotlin

解决方案


推荐阅读