Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80925

Phonegap build not finding index.html file and crosswalk plugin causing errors with Android

$
0
0

I have been running into some issues when building a new version of my mobile app.  When I try to download a phonegap.zip file from Mendix and upload it to Adobe phonegap build to build the app, I receive and error that says index.html not found.  It seems as though phonegap build is not able to locate the index.html file.  I’m not sure if this is due to the new folder structure of the hybrid mobile apps.  The new folder structure has the index.html file located in the PhoneGapBuild\dist\phonegap.zip\www subdirectory.  In order to get this to work I had to place the phonegap.zip folder in the root folder and also unzip it so that phonegap build could locate the index.html file.  The new location of the index.html is here PhoneGapBuild\phonegap\www.  I tested in on my android device and it is still working, but I’m not sure if changing the folder structure will cause any issues in the future. 

The reason why I wanted to download and edit the phonegap.zip folder is because I wanted to be able to edit the config.xml file because I was having some issues with the crosswalk plugin.  When I try to build an android apk file when using an app signing key in phonegap build, the crosswalk plugin is building a x86-release.apk file, which is not compatible with my android device.  This was an issue earlier discussed in the Mendix forum and I was able to use the plugin below

<plugin name="cordova-build-architecture" spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.1" source="git" />

 

so that it would build an application with the ARM architecture.  This is not working anymore, it is still building the x86-release.apk file even with the abovementioned plugin placed in the config.xml file.  I had to remove the crosswalk plugin to get this to work, but I would prefer to use it being as though the plugin makes your app more consistent across devices and therefore less prone to errors.   Is anyone else experiencing these issues when building a new hybrid mobile app and have you found a solution to this issue?  Thank you.


Viewing all articles
Browse latest Browse all 80925

Trending Articles