Hello Anvitha, (edit: sorry, just noticed that you’ve posted a comment to my reply in the other forum post)
It’s hard to recommend a suggestion based on the given image.
As you have noticed, the error message says that the access to the file ...\911.11.40456\modeler\DotNetZip-nsv3xp3g.tmp is denied. I’ve tried to run the MxBuild command myself and this tmp file (or simmilar) was not created… weird...
The procedure I usually do to generate APKs is as follows.
C:\Programs\Mendix\{MxVersion}\modeler\mxbuild.exe --java-home="C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot" --java-exe-path="C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot\bin\java.exe" --target=deploy --native-packager --loose-version-check {MprProject}
Copy-Item -Path "{your project folder}\deployment\native\bundle\android\*" -Destination "{your template folder}\android\app\src\main\" -Recurse -Force
npm install
npm run configure
Set-Location {your template folder}\android\
.\gradlew.bat assembleAppstoreDebug
At the end of this procedure, you’ll have an unsigned APK debug in the folder:
{your template folder}\android\app\build\outputs\apk\appstore\debug