cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create APK for PWA

misha2400
Level 2

Hello,

 

Trying to package my PWA based on this article:

https://developer.oculus.com/documentation/web/pwa-packaging/

 

Getting the error:

 

 

2022-03-11T00:25:06.393Z [DEBUG] Using apktool at: C:\F\ovr-platform-util-pwa\apktool.bat
2022-03-11T00:25:06.390Z [DEBUG] Using PWA APK Template at: C:\F\ovr-platform-util-pwa\pwa-template.apk
2022-03-11T00:25:06.397Z [DEBUG] Using keystore at: C:\F\ovr-platform-util-pwa\debug.keystore
2022-03-11T00:25:06.396Z [DEBUG] Using apksigner at: C:\Users\michaelbogomolov\AppData\Local\Android\Sdk\build-tools\32.0.0\apksigner.bat
2022-03-11T00:25:06.398Z [DEBUG] Using 351 byte test payload from --test-manifest-content file manifest.json...
2022-03-11T00:25:06.399Z [DEBUG] Fetched PWA for Costpoint
2022-03-11T00:25:06.399Z [DEBUG] Using Entry Point: https://cp-cust1-cp16dvp.aut.engdeltekgcc.com/cpweb/cploginform.htm
2022-03-11T00:25:06.583Z [DEBUG] Loading APK Manifest from C:\Users\MICHAE~1\AppData\Local\Temp\tmp-29944Khwq7qUIfGk0\AndroidManifest.xml...
2022-03-11T00:25:06.590Z [ERROR] Server log: {"log_level":"ERROR","event_name":"UNEXPECTED_ERROR","stack_trace":"Error: ENOENT: no such file or directory, open 'C:\\Users\\MICHAE~1\\AppData\\Local\\Temp\\tmp-29944Khwq7qUIfGk0\\AndroidManifest.xml'\n at Object.fs.openSync (fs.js:646:18)\n at Object.fs.readFileSync (fs.js:551:33)\n at e.exports ([eval]:1:1303941)\n at <anonymous>","extra":"{\"caught\":true,\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.68.0.000001\",\"compatibility_version\":2}"}
2022-03-11T00:25:06.586Z [DEBUG]

 

My understanding was it should have created AndroidManifest.xml in the temp folder, but the temp folder is empty. I'm sure the cmd window does have writing access to temp folder as I can successfully copy any file into it using "copy" command in the very same command window.

2 REPLIES 2

arnolem
Level 3

Same problem for me :

> ovr-platform-util.exe create-pwa -o "output.apk" --manifest-content-file "manifest.webmanifest" --android-sdk "sdk"

 

 


2022-04-08T14:03:10.088Z [DEBUG] Run args: {"manifestContentFile":"manifest.webmanifest","androidSdk":"sdk","apkTemplate":"pwa-template.apk","out":"recovup.apk","keystore":"debug.keystore","ksPass":"pass:android","keyPass":"pass:android","ksKeyAlias":"androiddebugkey","testEmitXml":false}
2022-04-08T14:03:10.202Z [DEBUG] Using PWA APK Template at: C:\Users\Arnaud\Desktop\ovr-platform-util-pwa\pwa-template.apk
2022-04-08T14:03:10.202Z [DEBUG] Using apktool at: C:\Users\Arnaud\Desktop\ovr-platform-util-pwa\apktool.bat
2022-04-08T14:03:10.204Z [DEBUG] Using apksigner at: sdk\build-tools\30.0.1\apksigner.bat
2022-04-08T14:03:10.204Z [DEBUG] Using keystore at: C:\Users\Arnaud\Desktop\ovr-platform-util-pwa\debug.keystore
2022-04-08T14:03:10.205Z [DEBUG] Using 651 byte test payload from --test-manifest-content file manifest.webmanifest...
2022-04-08T14:03:10.205Z [DEBUG] Fetched PWA for Name
2022-04-08T14:03:10.205Z [DEBUG] Using Entry Point: https://......................./?pwa
2022-04-08T14:03:10.206Z [DEBUG] Decoding PWA APK Template in C:\Users\Arnaud\AppData\Local\Temp\tmp-25508oj3qhtCp9R4M...
2022-04-08T14:03:10.272Z [DEBUG] Loading APK Manifest from C:\Users\Arnaud\AppData\Local\Temp\tmp-25508oj3qhtCp9R4M\AndroidManifest.xml...
2022-04-08T14:03:10.275Z [ERROR] Server log: {"log_level":"ERROR","event_name":"UNEXPECTED_ERROR","stack_trace":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Arnaud\\AppData\\Local\\Temp\\tmp-25508oj3qhtCp9R4M\\AndroidManifest.xml'\n at Object.fs.openSync (fs.js:646:18)\n at Object.fs.readFileSync (fs.js:551:33)\n at e.exports ([eval]:1:1303941)\n at <anonymous>","extra":"{\"caught\":true,\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.68.0.000001\",\"compatibility_version\":2}"}
2022-04-08T14:03:10.272Z [DEBUG]

ERROR: An unexpected error occurred



arnolem
Level 3

I have a solution for this problem :

1- Install Java Runtime Environment (JRE)

2-reload your terminal

 

It's ok for me.