+
Skip to content

Android Release Build Fails #144

@blissland

Description

@blissland

When building a signed release version of my app it fails when attempting to load the main file:

jxcore('app.js').loadMainFile()

The error message reported is:

No such native module /data/data/my.app.name/files/www/jxcore/app.js

The debug version of the app works fine.

I found what I believe is the same issue reported in the Thali Project:

thaliproject/Thali_CordovaPlugin#594

I am using version 0.1.1 of the plugin.

UPDATE
After more investigation here are a few more clues:
1/ The signed release app does sometimes start without errors. So maybe looking at a timing/threading issue.
2/ When the app fails the fs extension functions defined in jxcore_cordova.js (existssync, readfilesync) are not even invoked to try to read the app.js. So maybe the problem is somewhere in the main jxcore code rather than the cordova part?
3/ The message "no such native module" seems to be for core node.js modules. There seems to be no attempt made to load app.js

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载