Samsung Electronics Ltd. asked a judge to declare invalid a contract under which the company paid Microsoft Corp. more than $1 billion last year, according to a court filing.

Microsoft sued Samsung last summer, saying the Korean mobile-phone giant didn’t comply with terms of the companies’ business arrangement, including failing to pay interest last fall on a $1 billion annual fee to use Microsoft technology in Samsung phones.

Samsung and other companies that make smartphones and tablets powered by Google Inc.’s Android software have agreed to pay patent royalties for Microsoft intellectual property purportedly included in Android technology.

Samsung for months didn’t respond publicly to Microsoft’s lawsuit. But in a court filing Thursday, Samsung claimed Microsoft’s purchase of Nokia Corp. ’s mobile-phone business in April violated the companies’ business-collaboration contract signed in 2011.

Microsoft earlier had disclosed that Samsung paid more than $1 billion last year under the patent-licensing contract. The companies’ licensing agreement runs for seven years. Samsung pays Microsoft an undisclosed fee for each Android smartphone or tablet it sells.