Mobile App generation Cordova issues with 2.5.1 [Solved]

If you get a solutions would a great idea to adding in @paulishca repo

I encountered this problem with a duplicate google-services being included in my Gradle build.

I’ve created a Cordova plugin that essentially automates @bratelefant 's hack.

You can try it:

meteor add cordova:cordova-plugin-remove-googleservices@0.1.1

It looks through your android project.properties file and removes anything where the value matches cordova-support-google-services, and then reindexes all the remaining cordova.gradle.include entries in the same properties file. This prevents Gradle from including cordova-support-google-services, which would otherwise have included the line @bratelefant mentions above.

The source repository is here.

( @davideonmeteor )

3 Likes

Great to hear that ! I will try it soon !

1 Like

Sounds cool, will also give it a shot

1 Like

Ok just made it work. However, I don’t like what we had to do to make it work :wink:

We did install :
meteor add cordova:cordova-plugin-remove-googleservices@0.1.1

AND add these to the mobile-config.js
App.setPreference(“GradlePluginGoogleServicesEnabled”, true);
App.setPreference(“GradlePluginGoogleServicesVersion”, “4.3.10”);

Without one or the other… it did not build!!

Thanks a lot for your help!!

Has anyone fixed the error yet? :smiling_face_with_tear: