Error building for Cordova 5.0.0

4 posts, 0 answers
  1. Ste
    Ste avatar
    11 posts
    Member since:
    May 2016

    Posted 21 May Link to this post

    I am now trying to update my app to the latest cordova version (5.0.0), but when I tried to build it for android (in release mode) I got this error:

    Project "PirateRoaming.tmp.proj" (default targets):<br>   Warning: Cannot include the following item(s) in your application: .DS_Store;Plugins\cordova-plugin-contacts-master\.gitignore;Plugins\cordova-plugin-geolocation-master\.gitignore;Plugins\cordova-plugin-geolocation-master\.travis.yml;Plugins\cordova-plugin-statusbar-master\.travis.yml;Plugins\Cordova-sqlite-storage-master-rc\.gitignore;Plugins\Cordova-sqlite-storage-master-rc\.travis.yml;Plugins\Cordova-sqlite-storage-master-rc\spec\.cordova\config.json;Plugins\Cordova-sqlite-storage-master-rc\spec\platforms\.gitignore;Plugins\Cordova-sqlite-storage-master-rc\spec\plugins\.gitignore;Plugins\Cordova-sqlite-storage-master-rc\src\external\.gitignore;Plugins\ionic-plugins-keyboard-master\.gitignore;Plugins\ionic-plugins-keyboard-master\src\blackberry10\native\.cproject;Plugins\ionic-plugins-keyboard-master\src\blackberry10\native\.project;Plugins\Phonegap-SMS-master\.gitignore. The build system treats items with a leading dot as hidden files or directories and does not process them. If you want to include these items in your application package, rename them and rebuild your app.<br>   android Build Tooling revision 2016.05.03.3r<br>   Warning: Note: Some input files use or override a deprecated API.<br>   Warning: Note: Recompile with -Xlint:deprecation for details.<br>   Warning: Note: Some input files use or override a deprecated API.<br>   Warning: Note: Recompile with -Xlint:deprecation for details.<br>   Warning: FAILURE: Build failed with an exception.<br>   Warning: * What went wrong:<br>Execution failed for task ':processArmv7ReleaseResources'.<br>   Warning: > Error: more than one library with package name 'com.google.android.gms'<br>   Warning: * Try:<br>Run with --stacktrace option to get the stack trace. Run with<br>   Warning: --info or --debug option to get more log output.<br>   Warning: undefined<br>   Error: Build failed during execution<br>   Error: 'Build failed with error code 2'<br>Done building project "PirateRoaming.tmp.proj" -- FAILED.

    What does it mean and how could I fix it?

    Thanks

  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 24 May Link to this post

    Hello Ste,

    I've already answered in your other thread here. As described there, it looks like you are using custom plugins and some of them include the Google Play Services as a .jar file (or in some other way). The recommended way to use Google Play Services is to use them in your plugin.xml as framework:
    <framework src="com.google.android.gms:play-services-gcm:8.4.0" />

    You should check if any of your custom plugins has the Google Play Services defined in a different manner and change it to use the suggested syntax.

    Hope this helps.

    Regards,
    Rosen Vladimirov
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Ste
    Ste avatar
    11 posts
    Member since:
    May 2016

    Posted 26 May in reply to Rosen Vladimirov Link to this post

    Rosen,
    thanks for your suggestion: changing the Play services definition in the AppsFlyer plugin allowed me to build for Android with Cordova 5.0.0.
    However the app now doesn't even start, just a blank screen and it logs:
    deviceready has not fired after 5 seconds.                      cordova.js:1185
    Channel not fired: onCordovaReady                               cordova.js:1178
    Channel not fired: onCordovaInfoReady                           cordova.js:1178
    Channel not fired: onCordovaConnectionReady                     cordova.js:1178

    I ran 'appbuilder device log' and I am attaching the result. 
    I really don't know how to use that info, maybe you will find a clue.

    Thanks

  4. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 30 May Link to this post

    Hi Ste,

    I've already answered your other forum thread about the white screen issue. It looks like some of the styles are setting the visibility of all elements to hidden.

    Let's keep the conversation in the other thread, where's the full information about the issue, so we'll not miss something.

    Regards,
    Rosen Vladimirov
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top