{"action":"created","issue":{"url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/599","repository_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4","labels_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/599/comments","events_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/599/events","html_url":"https://github.com/jeduan/cordova-plugin-facebook4/issues/599","id":280099972,"node_id":"MDU6SXNzdWUyODAwOTk5NzI=","number":599,"title":"cordova-android@7.0.0 incompatibility","user":{"login":"peterpeterparker","id":16886711,"node_id":"MDQ6VXNlcjE2ODg2NzEx","avatar_url":"https://avatars0.githubusercontent.com/u/16886711?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpeterparker","html_url":"https://github.com/peterpeterparker","followers_url":"https://api.github.com/users/peterpeterparker/followers","following_url":"https://api.github.com/users/peterpeterparker/following{/other_user}","gists_url":"https://api.github.com/users/peterpeterparker/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpeterparker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpeterparker/subscriptions","organizations_url":"https://api.github.com/users/peterpeterparker/orgs","repos_url":"https://api.github.com/users/peterpeterparker/repos","events_url":"https://api.github.com/users/peterpeterparker/events{/privacy}","received_events_url":"https://api.github.com/users/peterpeterparker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":39,"created_at":"2017-12-07T11:45:04Z","updated_at":"2018-07-25T14:01:53Z","closed_at":null,"author_association":"COLLABORATOR","body":"Hi,\r\n\r\nIt looks like `cordova-plugin-facebook4` isn't compatible with `cordova-android` **7.0.0**\r\n\r\nI'm guessing that the incompatibility source is the following element in `plugin.xml`\r\n\r\n      <config-file target=\"AndroidManifest.xml\" parent=\"application\">\r\n            <meta-data android:name=\"com.facebook.sdk.ApplicationId\" android:value=\"@string/fb_app_id\"/>\r\n            <meta-data android:name=\"com.facebook.sdk.ApplicationName\" android:value=\"@string/fb_app_name\" />\r\n            <activity android:name=\"com.facebook.FacebookActivity\"\r\n              android:configChanges=\"keyboard|keyboardHidden|screenLayout|screenSize|orientation\"\r\n              android:label=\"@string/fb_app_name\" />\r\n        </config-file>\r\n\r\nRegarding what was indicated in https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html\r\n\r\nSteps to reproduce:\r\n\r\n     ionic start cordova-7\r\n     ionic cordova platform add cordova-android@7.0.0\r\n     ionic cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID=\"123456789\" --variable APP_NAME=\"myApplication\"\r\n     ionic cordova build android\r\n\r\n\r\nThx in advance for any help\r\n\r\nStacktrace:\r\n\r\n> \r\n> BUILD FAILED in 12s\r\n> 25 actionable tasks: 4 executed, 21 up-to-date\r\n> Error: /Users/me/Documents/projects/test/cordova-7/platforms/android/gradlew: Command failed with exit code 1 Error output:\r\n> /Users/me/Documents/projects/test/cordova-7/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:112: AAPT: error: resource string/fb_app_id (aka io.ionic.starter:string/fb_app_id) not found.\r\n>     \r\n> /Users/me/Documents/projects/test/cordova-7/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:115: AAPT: error: resource string/fb_app_name (aka io.ionic.starter:string/fb_app_name) not found.\r\n>     \r\n> /Users/me/Documents/projects/test/cordova-7/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:119: AAPT: error: resource string/fb_app_name (aka io.ionic.starter:string/fb_app_name) not found.\r\n>     \r\n> /Users/me/Documents/projects/test/cordova-7/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:112: error: resource string/fb_app_id (aka io.ionic.starter:string/fb_app_id) not found.\r\n> /Users/me/Documents/projects/test/cordova-7/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:115: error: resource string/fb_app_name (aka io.ionic.starter:string/fb_app_name) not found.\r\n> /Users/me/Documents/projects/test/cordova-7/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:119: error: resource string/fb_app_name (aka io.ionic.starter:string/fb_app_name) not found.\r\n> error: failed processing manifest.\r\n> \r\n> Failed to execute aapt\r\n> com.android.ide.common.process.ProcessException: Failed to execute aapt\r\n> \tat com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)\r\n> \tat com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)\r\n> \tat com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)\r\n> \tat com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)\r\n> \tat sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)\r\n> \tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n> \tat java.lang.reflect.Method.invoke(Method.java:497)\r\n> \tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)\r\n> \tat org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)\r\n> \tat org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)\r\n> \tat org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)\r\n> \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)\r\n> \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)\r\n> \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)\r\n> \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)\r\n> \tat org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)\r\n> \tat org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)\r\n> \tat org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n> \tat org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)\r\n> \tat org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)\r\n> \tat org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n> \tat org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)\r\n> \tat org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n> \tat org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)\r\n> \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)\r\n> \tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)\r\n> \tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)\r\n> \tat org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)\r\n> \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n> \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n> \tat org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)\r\n> \tat java.lang.Thread.run(Thread.java:745)\r\n> Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details\r\n> \tat com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)\r\n> \tat com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)\r\n> \tat com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)\r\n> \tat com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)\r\n> \t... 47 more\r\n> Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details\r\n> \tat com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)\r\n> \tat com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)\r\n> \tat com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)\r\n> \tat com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)\r\n> Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details\r\n> \tat com.android.builder.png.Aap\r\n> [ERROR] An error occurred while running cordova build android (exit code 1)."},"comment":{"url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/comments/407764682","html_url":"https://github.com/jeduan/cordova-plugin-facebook4/issues/599#issuecomment-407764682","issue_url":"https://api.github.com/repos/jeduan/cordova-plugin-facebook4/issues/599","id":407764682,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzc2NDY4Mg==","user":{"login":"aahmedfouad","id":8787735,"node_id":"MDQ6VXNlcjg3ODc3MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8787735?v=4","gravatar_id":"","url":"https://api.github.com/users/aahmedfouad","html_url":"https://github.com/aahmedfouad","followers_url":"https://api.github.com/users/aahmedfouad/followers","following_url":"https://api.github.com/users/aahmedfouad/following{/other_user}","gists_url":"https://api.github.com/users/aahmedfouad/gists{/gist_id}","starred_url":"https://api.github.com/users/aahmedfouad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aahmedfouad/subscriptions","organizations_url":"https://api.github.com/users/aahmedfouad/orgs","repos_url":"https://api.github.com/users/aahmedfouad/repos","events_url":"https://api.github.com/users/aahmedfouad/events{/privacy}","received_events_url":"https://api.github.com/users/aahmedfouad/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T14:01:53Z","updated_at":"2018-07-25T14:01:53Z","author_association":"NONE","body":"I'm getting this error in cordova android 7.1.1 \r\nwhen I run  ionic cordova build android\r\nit's generate the fb_app_id and fb_app_name in both file \r\nplatforms/android/app/src/main/res/values/strings.xml \r\nand platforms/android/app/src/main/res/values/facebookconnect.xml\r\n\r\n\r\n`\r\n* What went wrong:\r\nExecution failed for task ':app:mergeDebugResources'.\r\n> [string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml [string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources\r\n  [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml       [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources\r\n`"}}
{"actor":{"display_login":"aahmedfouad"}}