Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build android with new f7-cli #101

Open
cyrusonline opened this issue Oct 23, 2020 · 3 comments
Open

cannot build android with new f7-cli #101

cyrusonline opened this issue Oct 23, 2020 · 3 comments

Comments

@cyrusonline
Copy link

f7problems
image

After i updated the cli, i got the following error . This not happen when using old version, my friends also has these problems.
How can we fix this?? Thank you so much.

hecking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=C:\Users\cyruschan\AppData\Local\Android\sdk (DEPRECATED) Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.8 Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build-dev-cordova: cross-env TARGET=cordova cross-env NODE_ENV=development node ./build/build.js && cd cordova && cordova build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build-dev-cordova script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above

@srbala
Copy link
Contributor

srbala commented Oct 24, 2020

Please read your log and take action before open an issue ...

first one: you need both environment variable defined...

ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=C:\Users\cyruschan\AppData\Local\Android\sdk (DEPRECATED

second

Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.8 Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.

Please install JDK 1.8 and have the JAVA_HOME points to it.

@garubostar
Copy link

garubostar commented Nov 13, 2020

I have the same error, when run the command 'npm run build-prod-cordova-android --release, npm run build-prod-cordova-android, npm run build-prod-cordova-android - --release' , none of these commands worked for me it sends me error stacktrace.

I can only compile the application when I use the command 'npm run build-dev-cordova-android' which is for development mode, but for release mode it gives me an error. any solution please?

My Pc.
npm -v 6.9.0
node -v v12.5.0
cordova -v 10.0.0
cordova platform android 9.0
f7 --version 3.4.5

@srbala
Copy link
Contributor

srbala commented Nov 13, 2020

Command line build designed DEV use only at this point. might be community might have any suggestions ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants