android-js / androidjs-builder

Androidjs-builder is the official code generator for androidjs, it helps to generate and build fully featured android app in NodeJS.
MIT License
44 stars 21 forks source link

androidjs build > "failed to move apk to dist folder" #82

Open CelularBat opened 4 months ago

CelularBat commented 4 months ago

Hello, this is my first try to use androidJS. I'm compiling the example app from project page.

When I run: andoridjs build I get that message at the end. The full log is:

f--release= false copying assets ... updating app name... Setting app version ... Version Code: 1000032 Version Name: 1.0.0 updating theme ... theme attribute not found in package.json Using SDK: 2.3.0 Building Apk ... Generating apk in debug mode. use '--release' to generate release build failed to move apk to dist folder

I thought it might be some kind of issue with permissions, but I've tried it both on linux and on windows (also in admin mode) and I always get this error.

As I guess the apk was compiled after all, where is a temp path I can find it?

CelularBat commented 4 months ago

Ok, I've solved the issue. There were no message indicating that, but it was due to lack of installed JDK. I've installed JDK and everything seems fine.

@edit

No, I only eliminated the problem on Windows, but on Linux I still get: "failed to move apk to dist folder" JDK is installed, and it's used to sign an app. So on Linux problem persists.