即使导入了android.util.Log,Log.e也无法工作

即使导入了android.util.Log,Log.e也无法工作,android,performance,logging,android-studio-import,Android,Performance,Logging,Android Studio Import,我是一个初学者,我不明白,为什么它不工作,即使我导入了android.util.Log。我正在使用android studio package com.sai.myapplication; import android.util.Log; // showing full gray public class Fan { protected String fanName; protected boolean isOn; public String getFanName() { ret

我是一个初学者,我不明白,为什么它不工作,即使我导入了android.util.Log。我正在使用android studio

package com.sai.myapplication;
import android.util.Log; // showing full gray 

public class Fan {

protected String fanName;
protected boolean isOn;

public String getFanName() {
    return this.fanName;
}
public void BreakFan(){
    log.e(getFanName(),"BANg, CRASH!......OOPPs");// "log" is showing in red
}
}

日志“L”显示为大写。请检查一下。你用错了


Log.e(getFanName(),“砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰,砰“log”以红色显示,其
log
notlog(大写L)。如果我没有错的话,日志给了您编译时错误。因此,请使用下面的
Log

Log.e(getFanName(),"BANg, CRASH!......OOPPs");

log
更改为
log
(大写L)