I'm fairly new to android programming in general, and I'm having problems with printing to my log. I'm using Log.v() to do it, but I get an error: "cannot resolve symbol v"
This is the code:
import android.util.Log;
public class DressDatabase {
Dress[] dresses;
private static final String TAG = "Testing: ";
public DressDatabase(){
dresses = new Dress[15];
}
Log.v(TAG, "String");
}
Try this:
import android.util.Log;
public class DressDatabase {
Dress[] dresses;
private static final String TAG = "Testing: ";
public DressDatabase(){
dresses = new Dress[15];
Log.v(TAG, "String");
}
}
This is being caused as Log function cannot identify the tag and msg while you type. Once you finished with your instruction, check if the error message still pops up, if so press Alt+Enter. It will resolve. Check out my screenshot.Click here to view my screenshot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With