{"action":"created","issue":{"url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/705","repository_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4","labels_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/705/comments","events_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/705/events","html_url":"https://github.com/jeduan/cordova-plugin-facebook4/issues/705","id":358755878,"node_id":"MDU6SXNzdWUzNTg3NTU4Nzg=","number":705,"title":"[BUG] building cordova app fails when using barcode scanner plugin simultaneously","user":{"login":"iwan-uschka","id":2256579,"node_id":"MDQ6VXNlcjIyNTY1Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/2256579?v=4","gravatar_id":"","url":"https://api.github.com/users/iwan-uschka","html_url":"https://github.com/iwan-uschka","followers_url":"https://api.github.com/users/iwan-uschka/followers","following_url":"https://api.github.com/users/iwan-uschka/following{/other_user}","gists_url":"https://api.github.com/users/iwan-uschka/gists{/gist_id}","starred_url":"https://api.github.com/users/iwan-uschka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwan-uschka/subscriptions","organizations_url":"https://api.github.com/users/iwan-uschka/orgs","repos_url":"https://api.github.com/users/iwan-uschka/repos","events_url":"https://api.github.com/users/iwan-uschka/events{/privacy}","received_events_url":"https://api.github.com/users/iwan-uschka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-10T19:12:59Z","updated_at":"2018-09-12T03:46:27Z","closed_at":"2018-09-10T19:17:10Z","author_association":"NONE","body":"**Bug or feature request**\r\n\r\n[x] I'm reporting a reproducible issue with the code\r\n[ ] I'm reporting a feature request\r\n\r\n**Describe the Bug of feature request**\r\n\r\nCordova app can't be built when using cordova-plugin-facebook@2.4.0 and phonegab-plugin-barcodescanner@8.0.0 simultaneously.\r\n\r\n**Expected Behavior**\r\n\r\nCordova app should be built.\r\n\r\n**Plugin version, OS, devices, etc**\r\n\r\n- cordova-cli@8.0.0\r\n- cordova-android@7.1.1\r\n- cordova-plugin-facebook@2.4.0\r\n- phonegab-plugin-barcodescanner@8.0.0\r\n- **no other plugin is used**\r\n- no problems when using cordova-plugin-facebook@1.7.4\r\n\r\nconfig.xml:\r\n```\r\n<platform name=\"android\">\r\n    <hook src=\"hooks/__myapp/android_plugins_plugman.js\" type=\"after_platform_add\" />\r\n    <preference name=\"android-minSdkVersion\" value=\"19\" />\r\n    <preference name=\"android-targetSdkVersion\" value=\"26\" />\r\n    <preference name=\"AndroidPersistentFileLocation\" value=\"Internal\" />\r\n    <icon density=\"ldpi\" src=\"resources/android/icon/drawable-ldpi-icon.png\" />\r\n    ...\r\n    <splash density=\"land-ldpi\" src=\"resources/android/splash/drawable-land-ldpi-screen.png\" />\r\n    ...\r\n    <config-file parent=\"/resources\" target=\"./res/values/strings.xml\">\r\n        <string name=\"fb_app_id\">some app id</string>\r\n        <string name=\"fb_app_name\">app name</string>\r\n    </config-file>\r\n</platform>\r\n...\r\n<plugin name=\"cordova-plugin-facebook4\" spec=\"file:cordova_plugins/cordova-plugin-facebook4-2.4.0\">\r\n    <variable name=\"APP_ID\" value=\"some app id\" />\r\n    <variable name=\"APP_NAME\" value=\"app name\" />\r\n    <variable name=\"ANDROID_SDK_VERSION\" value=\"4.+\" />\r\n</plugin>\r\n<plugin name=\"phonegap-plugin-barcodescanner\" spec=\"file:cordova_plugins/phonegap-plugin-barcodescanner-8.0.0\">\r\n    <variable name=\"CAMERA_USAGE_DESCRIPTION\" value=\"some description\" />\r\n    <variable name=\"ANDROID_SUPPORT_V4_VERSION\" value=\"27.1.1\" />\r\n</plugin>\r\n...\r\n<engine name=\"ios\" spec=\"^4.5.5\" />\r\n<engine name=\"android\" spec=\"^7.1.1\" />\r\n```\r\n\r\n**Additional Context**\r\n\r\nAlready tried to solve the issue here: https://github.com/jeduan/cordova-plugin-facebook4/issues/507.\r\n\r\n**Error Log**\r\n\r\n```\r\nAndroid Studio project detected\r\n\r\n\r\nconfig file res/values/facebookconnect.xml requested for changes not found at /Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/res/values/facebookconnect.xml, ignoring\r\n\r\nconfig file res/values/facebookconnect.xml requested for changes not found at /Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/res/values/facebookconnect.xml, ignoring\r\n\r\n\r\nRunning command: /Users/SOME_USER_NAME/projects/SOME_PROJECT/hooks/after_prepare/010_add_platform_class.js /Users/SOME_USER_NAME/projects/SOME_PROJECT\r\n\r\n\r\nRunning command: /Users/SOME_USER_NAME/projects/SOME_PROJECT/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/SOME_USER_NAME/projects/SOME_PROJECT\r\n\r\n\r\nANDROID_HOME=/Users/SOME_USER_NAME/Library/Android/sdk\r\n\r\nJAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home\r\n\r\nstudio\r\n\r\n:wrapper\r\n\r\n\r\n\r\n\r\nBUILD SUCCESSFUL\r\n\r\n\r\n\r\n\r\nTotal time: 2.882 secs\r\n\r\n\r\n\r\n\r\nThis build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html\r\n\r\n\r\nSubproject Path: CordovaLib\r\n\r\n\r\nSubproject Path: app\r\n\r\n\r\npublishNonDefault is deprecated and has no effect anymore. All variants are now published.\r\n\r\n\r\nConfiguration 'compile' in project ':app' is deprecated. Use 'implementation' instead.\r\n\r\n\r\nThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.\r\n\r\n  at build_3woh5i5cs7vu80u1tavsoqgsd.run(/Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/app/build.gradle:144)\r\n\r\n\r\n:CordovaLib:preBuild\r\n UP-TO-DATE\r\n\r\n\r\n:CordovaLib:preDebugBuild\r\n UP-TO-DATE\r\n\r\n\r\n:CordovaLib:compileDebugAidl\r\n\r\n\r\n:CordovaLib:compileDebugRenderscript\r\n\r\n\r\n:CordovaLib:checkDebugManifest\r\n\r\n\r\n:CordovaLib:generateDebugBuildConfig\r\n\r\n\r\n:CordovaLib:prepareLintJar\r\n\r\n\r\n:CordovaLib:generateDebugResValues\r\n\r\n\r\n:CordovaLib:generateDebugResources\r\n\r\n\r\n:CordovaLib:packageDebugResources\r\n\r\n\r\n:CordovaLib:platformAttrExtractor\r\n\r\n\r\n:CordovaLib:processDebugManifest\r\n\r\n\r\n:CordovaLib:javaPreCompileDebug\r\n\r\n\r\n:CordovaLib:processDebugJavaRes\r\n\r\nNO-SOURCE\r\n\r\n:app:preBuild\r\n\r\nUP-TO-DATE\r\n\r\n:app:preDebugBuild\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.pom\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/customtabs/27.0.2/customtabs-27.0.2.pom\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/cardview-v7/27.0.2/cardview-v7-27.0.2.pom\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/animated-vector-drawable/27.0.2/animated-vector-drawable-27.0.2.pom\r\n\r\nDownload https://maven.google.com/com/android/support/support-vector-drawable/27.0.2/support-vector-drawable-27.0.2.pom\r\n\r\nDownload https://maven.google.com/com/android/support/customtabs/27.0.2/customtabs-27.0.2.aar\r\n\r\nDownload https://maven.google.com/com/android/support/animated-vector-drawable/27.0.2/animated-vector-drawable-27.0.2.aar\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/support-vector-drawable/27.0.2/support-vector-drawable-27.0.2.aar\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.aar\r\n\r\n\r\nDownload https://maven.google.com/com/android/support/cardview-v7/27.0.2/cardview-v7-27.0.2.aar\r\n\r\n\r\n:app:compileDebugAidl\r\n\r\n\r\n:CordovaLib:packageDebugRenderscript\r\n\r\nNO-SOURCE\r\n\r\n:app:compileDebugRenderscript\r\n\r\n\r\n:app:checkDebugManifest\r\n\r\n\r\n:app:generateDebugBuildConfig\r\n\r\n\r\n:app:prepareLintJar\r\n\r\n\r\n:app:generateDebugResValues\r\n\r\n\r\n:app:generateDebugResources\r\n\r\n\r\n:app:mergeDebugResources\r\n\r\n\r\n:app:createDebugCompatibleScreenManifests\r\n\r\n\r\n:CordovaLib:processDebugResources\r\n\r\n\r\n:CordovaLib:generateDebugSources\r\n\r\n\r\n:CordovaLib:compileDebugJavaWithJavac\r\nNote: Some input files use or override a deprecated API.\r\n\r\nNote: Recompile with -Xlint:deprecation for details.\r\n\r\n\r\n\r\n\r\n:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug\r\n\r\n\r\n:app:processDebugManifest\r\n\r\n\r\n:app:splitsDiscoveryTaskDebug\r\n\r\n\r\n:app:processDebugResources\r\n\r\n\r\n:app:generateDebugSources\r\n\r\n\r\n:app:javaPreCompileDebug\r\n\r\n\r\n:app:compileDebugJavaWithJavac\r\nNote: /Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/app/src/main/java/org/apache/cordova/facebook/ConnectPlugin.java uses or overrides a deprecated API.\r\n\r\n\r\nNote: Recompile with -Xlint:deprecation for details.\r\n\r\n\r\n\r\n\r\n:app:compileDebugNdk\r\n NO-SOURCE\r\n\r\n:app:compileDebugSources\r\n\r\n\r\n:CordovaLib:mergeDebugShaders\r\n\r\n\r\n:CordovaLib:compileDebugShaders\r\n\r\n\r\n:CordovaLib:generateDebugAssets\r\n\r\n\r\n:CordovaLib:mergeDebugAssets\r\n\r\n\r\n:app:mergeDebugShaders\r\n\r\n\r\n:app:compileDebugShaders\r\n\r\n\r\n:app:generateDebugAssets\r\n\r\n\r\n:app:mergeDebugAssets\r\n\r\n\r\n:app:transformClassesWithStackFramesFixerForDebug\r\n\r\n\r\n:app:transformClassesWithDesugarForDebug\r\n\r\n\r\n:app:transformClassesWithDexBuilderForDebug\r\n\r\n\r\n:app:transformDexArchiveWithExternalLibsDexMergerForDebug\r\n\r\nFAILED\r\n\r\n\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n\r\n\r\n* What went wrong:\r\n\r\n\r\nExecution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.\r\n\r\n\r\n>\r\njava.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex\r\n\r\n\r\n* Try:\r\n\r\nRun with\r\n--stacktrace option to get the stack trace. Run with --info\r\n or --debug option to get more log output.\r\n\r\n\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\n\r\n\r\n\r\nBUILD FAILED\r\n in 25s\r\n\r\n37 actionable tasks: 37 executed\r\n\r\n\r\n(node:16024) UnhandledPromiseRejectionWarning: Error: /Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/gradlew: Command failed with exit code 1 Error output:\r\nNote: Some input files use or override a deprecated API.\r\nNote: Recompile with -Xlint:deprecation for details.\r\nNote: /Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/app/src/main/java/org/apache/cordova/facebook/ConnectPlugin.java uses or overrides a deprecated API.\r\nNote: Recompile with -Xlint:deprecation for details.\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.\r\n> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\nBUILD FAILED in 25s\r\n    at ChildProcess.whenDone (/Users/SOME_USER_NAME/projects/SOME_PROJECT/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)\r\n    at ChildProcess.emit (events.js:182:13)\r\n    at maybeClose (internal/child_process.js:962:16)\r\n    at Socket.stream.socket.on (internal/child_process.js:381:11)\r\n    at Socket.emit (events.js:182:13)\r\n    at Pipe._handle.close (net.js:606:12)\r\n\r\n(node:16024) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)\r\n\r\n(node:16024) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n```"},"comment":{"url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/comments/420502558","html_url":"https://github.com/jeduan/cordova-plugin-facebook4/issues/705#issuecomment-420502558","issue_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/705","id":420502558,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDUwMjU1OA==","user":{"login":"fredgalvao","id":616464,"node_id":"MDQ6VXNlcjYxNjQ2NA==","avatar_url":"https://avatars2.githubusercontent.com/u/616464?v=4","gravatar_id":"","url":"https://api.github.com/users/fredgalvao","html_url":"https://github.com/fredgalvao","followers_url":"https://api.github.com/users/fredgalvao/followers","following_url":"https://api.github.com/users/fredgalvao/following{/other_user}","gists_url":"https://api.github.com/users/fredgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/fredgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredgalvao/subscriptions","organizations_url":"https://api.github.com/users/fredgalvao/orgs","repos_url":"https://api.github.com/users/fredgalvao/repos","events_url":"https://api.github.com/users/fredgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/fredgalvao/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T03:46:27Z","updated_at":"2018-09-12T03:46:27Z","author_association":"COLLABORATOR","body":"@iwan-uschka What did you get with `ANDROID_SUPPORT_VERSION@27.0.2`?"}}
{"actor":{"display_login":"fredgalvao"}}