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

Document build instructions #3

Open
tobias-klein opened this issue May 9, 2021 · 7 comments
Open

Document build instructions #3

tobias-klein opened this issue May 9, 2021 · 7 comments

Comments

@tobias-klein
Copy link
Member

No description provided.

@zhuiks
Copy link
Collaborator

zhuiks commented May 26, 2021

I'm still not able to build.

I was getting error about signing. So in build-extra.gradle I commented line#4 that refers to signing credentials.

But right now I'm getting the following error when running ./build.sh or cordova.build:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

Does it mean that abiFilters ndk configuration in build-extra.gradle get overwritten or skipped?

@tobias-klein
Copy link
Member Author

I need to check. It's not trivial unfortunately ... we may need a problem solving session for this one. I'll go through my setup once more and see whether I can give you more hints on what could be missing.

@zhuiks
Copy link
Collaborator

zhuiks commented May 27, 2021

BUILD SUCCESSFUL in 2m 20s

I followed this workaround instructions and created symlink for mips64el-linux-android toolchain.

Now I'm getting stack on the first launch after installation on virtual device. I've passed the permission request. And getting stack on "Initializing user interface". It looks like some JS error there. Can you describe how you connected dev tools?


update:
I'm able to run it in Android Studio as described in Cordova documentation

@zhuiks
Copy link
Collaborator

zhuiks commented May 27, 2021

Regarding ABI toolchain issue, the root of it seems to be using the old build tools (platforms/android/build.gradle#34-36):

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    }

and the 4.0 gradle as a wrapper at #49-51:

task wrapper(type: Wrapper) {
   gradleVersion = '4.1.0'
}

But this file is auto-generated by Cordova.

@tobias-klein
Copy link
Member Author

Hmmm... There must still be some difference in versions compared to my machine.

I may need to try to reproduce this on a clean VM.

Regarding debugging ... I am running the app on a device with developer mode / USB debugging enabled. Then I just connect via USB and open the URL chrome://inspect in a web browser on my development machine, there it detects the device and I can open the dev tools with a preview to the device screen.

@tobias-klein
Copy link
Member Author

Oh, and don't forget to run npm run bundle under the ezra-bible-app folder ... before running cordova build.

@zhuiks
Copy link
Collaborator

zhuiks commented May 28, 2021

I finally build it. So I'm getting to the i18nController errror 😃

I think I can't reproduce what I did. But from my observations:

  • installed Gradle version is not important as Cordova sets which version to use
  • I was getting some errors about CMake that seems to be connected with building node-sword-interface
  • node-sword-interface build stumbles around sqlite3 build. sqlite3 can automatically download its binaries using node-pre-gyp otherwise it falls back to rebuilding (that fails for me in spite of my node/npm version). Installation of node-pre-gyp to the ezdra-bible-app folder helped. Then I removed it and everything is still building without errors.
  • I think the goal should be to be able to build without Android-Studio. Just with installed Android SDK/NDK. Android-Studio seems to automatically configure some things in the system/project (like using of Gradle and cmake).

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

2 participants