Android build fails

-1
Keep getting an error that reads: Error - The following splash screen or icon file does not exist: build-extras.gradle Steps to reproduce: Mendix download app using the “build youself” option Include GoogleService-Info.plist and google-services.json to the project root Update cofig.xml for custom plugins Reupload the zip to build.phonegap.com Epic fail!   Run into this error
asked
5 answers
0

Hi Sid, Mendix hybrid apps that employ push notifications can no longer be built directly using the Phonegap Build flow in the Mendix Developer Portal. If you need push then you to build locally.

If you don't need push, then  you can still use the Phonegap Build workflow and disable the push notifications. See https://docs.mendix.com/releasenotes/mobile/hybrid-app#january-6th-2019-4-0-0-4-0-0

answered
4

I've been running into the same error, and created an issue on GitHub. For now, you can comment the line in your config.xml.mustache file on line 209:

 

              <!--   <resource-file src="build-extras.gradle" target="build-extras.gradle" /> -->

After that, create a new build and you're good to go. Obviously this is a workaround

 

Follow my issue here:

 

https://github.com/mendix/hybrid-app-base/issues/37

answered
0

Hi Sid,

did you use the manual on GitHub?

https://github.com/mendix/hybrid-app-template/blob/master/README.md#build-on-phonegap

answered
0

If you think it is a Mendix bug, you can create a example project and create a bug report to the Mendix.

answered
0

Thanks. Is there some place where the local build process for iOS and Android are throughly documented? I’ve been using the build process outlined here: https://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html and https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html

The problem with the cordova build process is that I’m having to manually replace several files (config.xml, index.html, entry.js and PNGs) to correctly build the app. This process is unfortunately prone to human-error and is not scalable (broken build if I forget to replace index.html) – can someone point me to a link/resource to get started with automating the local build process completely? TIA.

answered