{"action":"created","issue":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/195","repository_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation","labels_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/195/comments","events_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/195/events","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/195","id":185967940,"number":195,"title":"Ionic 2 Android build fails when plugin is added to project","user":{"login":"pdrosos","id":711055,"avatar_url":"https://avatars.githubusercontent.com/u/711055?v=3","gravatar_id":"","url":"https://api.github.com/users/pdrosos","html_url":"https://github.com/pdrosos","followers_url":"https://api.github.com/users/pdrosos/followers","following_url":"https://api.github.com/users/pdrosos/following{/other_user}","gists_url":"https://api.github.com/users/pdrosos/gists{/gist_id}","starred_url":"https://api.github.com/users/pdrosos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdrosos/subscriptions","organizations_url":"https://api.github.com/users/pdrosos/orgs","repos_url":"https://api.github.com/users/pdrosos/repos","events_url":"https://api.github.com/users/pdrosos/events{/privacy}","received_events_url":"https://api.github.com/users/pdrosos/received_events","type":"User","site_admin":false},"labels":[{"id":404958828,"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/labels/android","name":"android","color":"0e8a16","default":false},{"id":181789718,"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-28T16:38:49Z","updated_at":"2016-11-08T08:08:36Z","closed_at":null,"body":"<!--- Provide a general summary of the issue in the Title above -->\n## Your Environment\n\n<!--- Include as many relevant details about the environment you experienced the bug in -->\n- Plugin version: 2.2.4\n- Platform: Android\n- OS version: Linux Mint 18\n- Device manufacturer and model: -\n- Cordova version (`cordova -v`): 6.4.0\n- Cordova platform version (`cordova platform ls`):\n  Installed platforms:\n  android 6.0.0\n  Available platforms: \n  amazon-fireos ~3.6.3 (deprecated)\n  blackberry10 ~3.8.0\n  browser ~4.1.0\n  firefoxos ~3.6.3\n  ubuntu ~4.3.4\n  webos ~3.7.0\n- Plugin configuration options: -\n- Link to your project: -\n\nIssue details posted originally here: https://github.com/driftyco/ionic-native/issues/752 and Ionic team says it's this plugin's issue.\n\nWhen I generate a new starter project:\n`ionic start test-project --v2`\nand add the [BackgroundGeolocation](http://ionicframework.com/docs/v2/native/backgroundgeolocation/) plugin from Ionic Native:\n`ionic plugin add cordova-plugin-mauron85-background-geolocation`\nthe android build:\n`ionic build android`\nfails with this error:\n\n```\n:processDebugResources\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/res/xml/authenticator.xml:5:19-33: AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon').\n\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/res/xml/authenticator.xml:6:24-38: AAPT: No resource found that matches the given name (at 'smallIcon' with value '@drawable/icon').\n\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/build/intermediates/res/merged/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').\n\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/build/intermediates/res/merged/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'smallIcon' with value '@drawable/icon').\n\nFAILED\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task ':processDebugResources'.\n> com.android.ide.common.process.ProcessException: Failed to execute aapt\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n\nBUILD FAILED\n\nTotal time: 9.847 secs\n\nError: /home/pavlina/Projects/ionic-2.rc-1/platforms/android/gradlew: Command failed with exit code 1 Error output:\nNote: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\nNote: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/res/xml/authenticator.xml:5:19-33: AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon').\n\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/res/xml/authenticator.xml:6:24-38: AAPT: No resource found that matches the given name (at 'smallIcon' with value '@drawable/icon').\n\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/build/intermediates/res/merged/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').\n\n/home/pavlina/Projects/ionic-2.rc-1/platforms/android/build/intermediates/res/merged/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'smallIcon' with value '@drawable/icon').\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task ':processDebugResources'.\n> com.android.ide.common.process.ProcessException: Failed to execute aapt\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n```\n\nPlease let me know how to fix this, as the plugin is not usable for me at the moment and I need it in my project. \n\nThanks! \n"},"comment":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/comments/259071658","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/195#issuecomment-259071658","issue_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/195","id":259071658,"user":{"login":"mauron85","id":359450,"avatar_url":"https://avatars.githubusercontent.com/u/359450?v=3","gravatar_id":"","url":"https://api.github.com/users/mauron85","html_url":"https://github.com/mauron85","followers_url":"https://api.github.com/users/mauron85/followers","following_url":"https://api.github.com/users/mauron85/following{/other_user}","gists_url":"https://api.github.com/users/mauron85/gists{/gist_id}","starred_url":"https://api.github.com/users/mauron85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauron85/subscriptions","organizations_url":"https://api.github.com/users/mauron85/orgs","repos_url":"https://api.github.com/users/mauron85/repos","events_url":"https://api.github.com/users/mauron85/events{/privacy}","received_events_url":"https://api.github.com/users/mauron85/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T08:08:36Z","updated_at":"2016-11-08T08:08:36Z","body":"It is not closed. The ionic issue is closed, not this one."}}
{"actor":{"display_login":"mauron85"}}