When using kirchhoff with a loop with resistors and current source, how should I use kirchhoff voltage law?
for example in this circuit:
I can not use kirchhoff voltage law
You can't use KVL to analyze this circuit.
You probably know you can't use the basic nodal analysis (which applies KCL at every node) in a circuit with voltage sources, and you have to use the modified nodal analysis instead.
Similarly you can't use basic mesh analysis (KVL on every minimal loop) on a circuit with current sources. You'd have to use a modified mesh analysis instead.
That would mean creating a "supermesh" combining two meshes that share the current source. But your circuit doesn't have a second mesh, so you can't do that.
Instead, you should use KCL (or just simple inspection) to analyze your circuit.
This doesn't mean that KVL doesn't apply to this circuit. It does. KVL tells you that the voltage across the current source is equal to the voltage across the resistor. But you don't know either of these variables, so KVL doesn't help you get the other one.
Once you apply KCL at one of the nodes, you'll know the current through the resistor. And that will tell you the voltage across the resistor. Then KVL will let you get the voltage across the source. But you had to use KCL first to make KVL useful.