{"action":"created","issue":{"url":"https://api.github.com/repos/Notificare/notificare-push-lib-cordova/issues/4","labels_url":"https://api.github.com/repos/Notificare/notificare-push-lib-cordova/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Notificare/notificare-push-lib-cordova/issues/4/comments","events_url":"https://api.github.com/repos/Notificare/notificare-push-lib-cordova/issues/4/events","html_url":"https://github.com/Notificare/notificare-push-lib-cordova/issues/4","id":118009700,"number":4,"title":"Error: more than one library with package name 'com.google.android.gms'","user":{"login":"koenoe","id":35213,"avatar_url":"https://avatars.githubusercontent.com/u/35213?v=3","gravatar_id":"","url":"https://api.github.com/users/koenoe","html_url":"https://github.com/koenoe","followers_url":"https://api.github.com/users/koenoe/followers","following_url":"https://api.github.com/users/koenoe/following{/other_user}","gists_url":"https://api.github.com/users/koenoe/gists{/gist_id}","starred_url":"https://api.github.com/users/koenoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koenoe/subscriptions","organizations_url":"https://api.github.com/users/koenoe/orgs","repos_url":"https://api.github.com/users/koenoe/repos","events_url":"https://api.github.com/users/koenoe/events{/privacy}","received_events_url":"https://api.github.com/users/koenoe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-20T10:21:38Z","updated_at":"2015-11-21T00:43:31Z","closed_at":"2015-11-21T00:43:31Z","body":"When you use this library together with the Google Analytics plugin (https://github.com/danwilson/google-analytics-plugin) it throws an error:\r\n\r\n<img width=\"672\" alt=\"screen shot 2015-11-20 at 11 17 07\" src=\"https://cloud.githubusercontent.com/assets/35213/11297373/43b0e5c8-8f78-11e5-8d22-2f376318c43d.png\">\r\n\r\nMy AndroidManifest.xml **without Notificare** (I'm able to build successfully):\r\n```\r\n<?xml version='1.0' encoding='utf-8'?>\r\n<manifest android:hardwareAccelerated=\"true\" android:versionCode=\"10100\" android:versionName=\"1.1.0\" package=\"nl.kroodle.carkroodle\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\r\n    <supports-screens android:anyDensity=\"true\" android:largeScreens=\"true\" android:normalScreens=\"true\" android:resizeable=\"true\" android:smallScreens=\"true\" android:xlargeScreens=\"true\" />\r\n    <uses-permission android:name=\"android.permission.INTERNET\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" />\r\n    <application android:hardwareAccelerated=\"true\" android:icon=\"@drawable/icon\" android:label=\"@string/app_name\" android:supportsRtl=\"true\">\r\n        <activity android:configChanges=\"orientation|keyboardHidden|keyboard|screenSize|locale\" android:label=\"@string/activity_name\" android:launchMode=\"singleTop\" android:name=\"MainActivity\" android:screenOrientation=\"portrait\" android:theme=\"@android:style/Theme.Black.NoTitleBar\" android:windowSoftInputMode=\"adjustResize\">\r\n            <intent-filter android:label=\"@string/launcher_name\">\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n        <receiver android:enabled=\"true\" android:name=\"com.google.android.gms.analytics.AnalyticsReceiver\">\r\n            <intent-filter>\r\n                <action android:name=\"com.google.android.gms.analytics.ANALYTICS_DISPATCH\" />\r\n            </intent-filter>\r\n        </receiver>\r\n        <service android:enabled=\"true\" android:exported=\"false\" android:name=\"com.google.android.gms.analytics.AnalyticsService\" />\r\n        <receiver android:exported=\"true\" android:name=\"com.google.android.gms.analytics.CampaignTrackingReceiver\">\r\n            <intent-filter>\r\n                <action android:name=\"com.android.vending.INSTALL_REFERRER\" />\r\n            </intent-filter>\r\n        </receiver>\r\n        <service android:name=\"com.google.android.gms.analytics.CampaignTrackingService\" />\r\n    </application>\r\n    <uses-sdk android:minSdkVersion=\"16\" android:targetSdkVersion=\"23\" />\r\n</manifest>\r\n```\r\n\r\nMy AndroidManifest.xml **with Notificare**:\r\n```\r\n<?xml version='1.0' encoding='utf-8'?>\r\n<manifest android:hardwareAccelerated=\"true\" android:versionCode=\"10100\" android:versionName=\"1.1.0\" package=\"nl.kroodle.carkroodle\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\r\n    <supports-screens android:anyDensity=\"true\" android:largeScreens=\"true\" android:normalScreens=\"true\" android:resizeable=\"true\" android:smallScreens=\"true\" android:xlargeScreens=\"true\" />\r\n    <uses-permission android:name=\"android.permission.INTERNET\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" />\r\n    <application android:hardwareAccelerated=\"true\" android:icon=\"@drawable/icon\" android:label=\"@string/app_name\" android:name=\"re.notifica.cordova.BaseApplication\" android:supportsRtl=\"true\">\r\n        <activity android:configChanges=\"orientation|keyboardHidden|keyboard|screenSize|locale\" android:label=\"@string/activity_name\" android:launchMode=\"singleTop\" android:name=\"MainActivity\" android:screenOrientation=\"portrait\" android:theme=\"@android:style/Theme.Black.NoTitleBar\" android:windowSoftInputMode=\"adjustResize\">\r\n            <intent-filter android:label=\"@string/launcher_name\">\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n        <activity android:excludeFromRecents=\"true\" android:name=\"re.notifica.ui.NotificationActivity\" android:taskAffinity=\"\" />\r\n        <receiver android:name=\"re.notifica.push.gcm.PushReceiver\" android:permission=\"com.google.android.c2dm.permission.SEND\">\r\n            <intent-filter>\r\n                <action android:name=\"com.google.android.c2dm.intent.RECEIVE\" />\r\n                <action android:name=\"com.google.android.c2dm.intent.REGISTRATION\" />\r\n                <category android:name=\"nl.kroodle.carkroodle\" />\r\n            </intent-filter>\r\n        </receiver>\r\n        <service android:label=\"Notificare Push Service\" android:name=\"re.notifica.push.gcm.PushService\" />\r\n        <receiver android:name=\"re.notifica.cordova.IntentReceiver\" />\r\n        <meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />\r\n        <meta-data android:name=\"com.google.android.maps.v2.API_KEY\" android:value=\"COPY GOOGLE MAPS KEY FROM GOOGLE API CONSOLE\" />\r\n        <receiver android:enabled=\"true\" android:name=\"com.google.android.gms.analytics.AnalyticsReceiver\">\r\n            <intent-filter>\r\n                <action android:name=\"com.google.android.gms.analytics.ANALYTICS_DISPATCH\" />\r\n            </intent-filter>\r\n        </receiver>\r\n        <service android:enabled=\"true\" android:exported=\"false\" android:name=\"com.google.android.gms.analytics.AnalyticsService\" />\r\n        <receiver android:exported=\"true\" android:name=\"com.google.android.gms.analytics.CampaignTrackingReceiver\">\r\n            <intent-filter>\r\n                <action android:name=\"com.android.vending.INSTALL_REFERRER\" />\r\n            </intent-filter>\r\n        </receiver>\r\n        <service android:name=\"com.google.android.gms.analytics.CampaignTrackingService\" />\r\n    </application>\r\n    <uses-sdk android:minSdkVersion=\"16\" android:targetSdkVersion=\"23\" />\r\n    <uses-permission android:name=\"android.permission.GET_ACCOUNTS\" />\r\n    <uses-permission android:name=\"android.permission.WAKE_LOCK\" />\r\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\r\n    <uses-permission android:name=\"com.google.android.providers.gsf.permission.READ_GSERVICES\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\r\n    <uses-permission android:name=\"com.google.android.c2dm.permission.RECEIVE\" />\r\n    <permission android:name=\".permission.C2D_MESSAGE\" android:protectionLevel=\"signature\" />\r\n    <uses-permission android:name=\".permission.C2D_MESSAGE\" />\r\n</manifest>\r\n\r\n```\r\n\r\nI tried to remove this line in my AndroidManifest.xml and in the plugin.xml from Notificare:\r\n```\r\n<meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />\r\n```\r\n\r\nBut it will added back as soon as I try to build. It looks like a version conflict of Google Play Services though. Which version are you using? Is it possible to update it to the latest version (8.3)?\r\n\r\nSome more information:\r\nCordova version: 5.3.3"},"comment":{"url":"https://api.github.com/repos/Notificare/notificare-push-lib-cordova/issues/comments/158567850","html_url":"https://github.com/Notificare/notificare-push-lib-cordova/issues/4#issuecomment-158567850","issue_url":"https://api.github.com/repos/Notificare/notificare-push-lib-cordova/issues/4","id":158567850,"user":{"login":"silentjohnny","id":569663,"avatar_url":"https://avatars.githubusercontent.com/u/569663?v=3","gravatar_id":"","url":"https://api.github.com/users/silentjohnny","html_url":"https://github.com/silentjohnny","followers_url":"https://api.github.com/users/silentjohnny/followers","following_url":"https://api.github.com/users/silentjohnny/following{/other_user}","gists_url":"https://api.github.com/users/silentjohnny/gists{/gist_id}","starred_url":"https://api.github.com/users/silentjohnny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silentjohnny/subscriptions","organizations_url":"https://api.github.com/users/silentjohnny/orgs","repos_url":"https://api.github.com/users/silentjohnny/repos","events_url":"https://api.github.com/users/silentjohnny/events{/privacy}","received_events_url":"https://api.github.com/users/silentjohnny/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T00:43:31Z","updated_at":"2015-11-21T00:43:31Z","body":"Hi Koen,\r\n\r\nJust released a new version of the plugin (1.6.1), which is a compatibility patch for Android SDK < 23, but with updated dependencies for GooglePlayServices and V7AppCompat.\r\n\r\n1.6.2 will have compatibility for Android SDK 23.\r\n\r\n\r\n\r\n"}}