fix build aar error in Zip-Nuget-Java-Nodejs Packaging pipeline (#18745)
### Description
<!-- Describe your changes. -->
[Pipeline failure
info](https://aiinfra.visualstudio.com/Lotus/_build/results?buildId=387310&view=logs&j=0aae05c9-1dc0-5099-eb4a-4cbb949c7458&t=71450a55-3e84-511c-7394-a06145376912&l=1044)
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fix packaging pipeline brought by pr.
Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>