ALBANY - Legalizing marijuana in New York won't be happening soon.

As the final agreement on a state budget comes into form, legalizing pot won't make the cut, Gov. Andrew Cuomo and legislative leaders said.

Cuomo proposed a plan to tax and regulate marijuana as part of the budget for the fiscal year that starts Monday.

But Cuomo and lawmakers indicated in recent weeks that it was increasingly unlikely a deal could be reached. And Cuomo on Friday night made it official.

"Probably the biggest single issue that will not be addressed is the legalization of marijuana," he told reporters at the Capitol.

"That is in concept, we have agreement. But that is all about the devil is in the details. And that is going to take more time to work-out."

What's next for marijuana in New York

The legislative session runs through mid-June, so supporters and lawmakers will work to get a deal then, he said.

The sides were unable to work out how much to tax marijuana sales, where the money would go and how many stores would be able to open.

"If you ask what is not going to get done, what's going to be carried over, the main thing is probably going to be marijuana legalization," Cuomo continued.

Cuomo initially proposed using some of the revenue from taxing marijuana to pay for upgrades to the New York City transit system.

But when passing marijuana seemed increasingly unlikely, he switched his plan to a real-estate tax on high-end apartments in the city to help fund the subways and buses.

Advocates said they were disappointed the measure won't make it into the fiscal package, saying the budget would have been an appropriate time to get it done.

"We believe that New Yorkers deserve more than unmet promises and empty rhetoric around marijuana reform," said Kassandra Frederique, state director of the Drug Policy Alliance.

"Each day marijuana legalization is not passed, someone is arrested, deported, evicted or loses custody of a child because of criminalization."

More:Marijuana in New York: Here's how Andrew Cuomo plans to legalize, tax it

More:Plastic-bag ban in, marijuana out: The latest on New York's budget negotiations

Marijuana debate continues

In recent weeks, opponents of marijuana are rallied at the Capitol to call on state leaders to hold off on any decision, warning of the societal and health impacts of legalizing the drug.

In particular, school groups, health professionals and law enforcement urged the state to reject the proposal.

'With a current opiate epidemic in our midst, with 1 in 5 children vaping or using electronic cigarettes, introducing recreational marijuana to the market is dangerous and counterintuitive," the state PTA wrote Tuesday in a letter to legislative leaders.

Also, some counties, including Rockland and Putnam and the two on Long Island, said they would opt out of the program, which put pressure on some lawmakers to hold off on any vote.

New York and New Jersey have both been on a course to legalize marijuana after other nearby states, Massachusetts and Vermont, have done so.

But New Jersey's efforts in its legislature recently failed, and New York will look to do it before session ends. Otherwise, it would have to wait until next year.

More:Live From Albany: Should New York legalize recreational marijuana?

More:NY's plastic bag ban explained: What you need to know