Problem: This verse declares that “Joshua made war a long time with all those kings.” But earlier (in Joshua 10:42) it affirms that “all these kings and their land Joshua took at one time.”
Solution: These two texts refer to different kings at different times. The first passage speaks of the southern campaigns which went rapidly. But the other verse has reference to the northern battles which took much longer.