Kelvin
Kelvin

Reputation: 31

import android.util.LOG; unused import statement android-studio

import android.util.LOG unused import statement android studio Error Image

Hi i'm new to android studio and this is the tutorial i've tried to follow from thenewboston youtube tutorial which i got an error message like this. I've tried the solution on checking the auto import> add unambiguous imports on the fly and unchecking the optimize imports on the fly but it still shows the same error as the image shown. How do i resolve this? Sorry for asking such a question

Upvotes: 2

Views: 3140

Answers (3)

Chord Chen
Chord Chen

Reputation: 36

This is my import statement:

import android.util.Log; Not LOG, Using Log.e() when you coding.

Upvotes: 1

Ali Ahmed
Ali Ahmed

Reputation: 2178

Don't Worry.

Just change the

LOG.i(TAG, "TEXT ");

To

Log.i(TAG, "TEXT ");

Upvotes: 0

theanilpaudel
theanilpaudel

Reputation: 3478

It is Log not LOG, replace LOG with Log in import statement and everywhere below. And it would be better if you post the code, not the image on StackOverflow.

Upvotes: 0

Related Questions