Updated

The governments of Venezuela and Guyana have agreed to more talks on a border dispute that prompted the Venezuelan navy to detain a ship charted by a U.S. oil company.

The two governments on Friday issued a joint statement assuring that they have "excellent relations" and believe dialogue is the best way to reach a solution.

But there won't be a quick end to this decades-long dispute. The statement says the only agreement so far is to have technical teams from both sides meet in four months to discuss how to proceed.

Diplomats met Thursday in Trinidad, a week after Venezuela detained a ship chartered by U.S.-based Anadarko Petroleum as it conducted exploration activities in disputed waters. Guyana says the crew and ship will be released soon.