Skip to content

cannot build android with new f7-cli #101

Open

Description

@cyrusonline

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! my-app@1.0.0 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 my-app@1.0.0 build-dev-cordova script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above

Activity

  1. srbala commented on Oct 24, 2020

    @srbala
    Contributor

    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.

  2. garubostar commented on Nov 13, 2020

    @garubostar

    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

  3. srbala commented on Nov 13, 2020

    @srbala
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions