This is a migrated thread and some comments may be shown as answers.

Error building for Cordova 5.0.0

3 Answers 98 Views
Command-Line Interface
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ste
Top achievements
Rank 1
Ste asked on 21 May 2016, 05:51 AM

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

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 24 May 2016, 01:49 PM
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.

 
0
Ste
Top achievements
Rank 1
answered on 26 May 2016, 05:48 PM
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

0
Rosen Vladimirov
Telerik team
answered on 30 May 2016, 09:38 AM
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.

 
Tags
Command-Line Interface
Asked by
Ste
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Ste
Top achievements
Rank 1
Share this question
or