androidjs icon indicating copy to clipboard operation
androidjs copied to clipboard

"Unable to rename temporary file"

Open phaze-the-dumb opened this issue 4 years ago • 2 comments

Describe the bug When i try and build the application i get an error saying

non zero exit code: failed to build apk
Unable to rename temporary file

To Reproduce I have had this working but i launched vsc today and its giving me this error when i run npm run build

Expected behavior I wanted it to build the application

Screenshots image image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome

Smartphone (please complete the following information):

  • Device: Android
  • OS: Andoid
  • Browser: duckduckgo, chrome

Thanks

phaze-the-dumb avatar Jun 13 '21 15:06 phaze-the-dumb

Oh sorry meant to put this in the post

Full Log:

PS C:\Users\Liam\Downloads\arm app\ArmageddonRPG> npm run build

> [email protected] build
> androidjs build

--release= false
copying assets ...
updating app name...
Setting app version ...
Version Code: 1000032
Version Name: 1.0.0
updating theme ...
Using SDK: 2.2.0
Building Apk ...
non zero exit code: failed to build apk
Unable to rename temporary file

phaze-the-dumb avatar Jun 13 '21 15:06 phaze-the-dumb

the message is printed by https://github.com/iBotPeaches/Apktool/blob/35ce8fc061d31e30978c6f65d194fe3c4191b0be/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java#L666

which is caused by *.apktool_temp residue of interrupted build process.

quick fix : delete *.apktool_temp in userhome/.androidjs/cache

yapcheahshen avatar Jan 10 '23 03:01 yapcheahshen