2
private static final String LOG_TAG = "MyActivity";
Log.d(LOG_TAG, "something");
Eclipse在这里标记为错误。它不知道任何Log。*方法,为什么会这样?Eclipse没有看到Log.d()方法
编辑:看IMG
private static final String LOG_TAG = "MyActivity";
Log.d(LOG_TAG, "something");
Eclipse在这里标记为错误。它不知道任何Log。*方法,为什么会这样?Eclipse没有看到Log.d()方法
编辑:看IMG
你不能把
Log.d(LOG_TAG, "something");
外面像静态定义的方法或代码块。
您的Log.d不在方法中。把它放在创建或任何其他方法,它应该工作。
最新的错误消息在您的Android控制台。 –
它不会编译immo。 – RoflcoptrException
你的代码的哪一部分是Log.d(LOG_TAG,“something”);'? – Vladimir