Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated plugin from plugin.xml; use <framework> tag #567

Closed
wants to merge 1 commit into from
Closed

Conversation

jscuba
Copy link

@jscuba jscuba commented Jul 13, 2015

Google Play Services dependency was incorrectly included in Android build. It conflicted with cordova-background-geolocation and caused a build error:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processArmv7DebugResources'.

    Error: more than one library with package name 'com.google.android.gms'
    You can temporarily disable this error with android.enforceUniquePackageName=false
    However, this is temporary and will be enforced in 1.0

The pull request comes from discussion on cordova-background-geolocation. Credit to christocracy and lakano.

@cosmith
Copy link

cosmith commented Jul 14, 2015

I have the same problem, trying to use Google Analytics, I merged your fix in my branch but it fails.
The error in the java code is:

Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  
Expected 7327000 but found 6171000.  
You must have the following declaration within the <application> element:    
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

What I don't understand is that the code is using @integer/google_play_services_version everywhere...

@canadaka
Copy link
Contributor

Hmm didn't work for me, app builds but then I get this error when trying to load a map

TypeError: Cannot read property 'maps' of undefined

I built again and this time I get

ReferenceError: plugin is not defined
    at getType (google-map.js:281)

But the plugin.google.maps folder is in plugins.

@jscuba jscuba closed this Jul 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants