{"action":"created","issue":{"url":"https://api.github.com/repos/scala-android/sbt-android/issues/289","repository_url":"https://api.github.com/repos/scala-android/sbt-android","labels_url":"https://api.github.com/repos/scala-android/sbt-android/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/scala-android/sbt-android/issues/289/comments","events_url":"https://api.github.com/repos/scala-android/sbt-android/issues/289/events","html_url":"https://github.com/scala-android/sbt-android/issues/289","id":181269667,"number":289,"title":"Failed to merge manifest files","user":{"login":"MikaelMayer","id":3601079,"avatar_url":"https://avatars.githubusercontent.com/u/3601079?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelMayer","html_url":"https://github.com/MikaelMayer","followers_url":"https://api.github.com/users/MikaelMayer/followers","following_url":"https://api.github.com/users/MikaelMayer/following{/other_user}","gists_url":"https://api.github.com/users/MikaelMayer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelMayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelMayer/subscriptions","organizations_url":"https://api.github.com/users/MikaelMayer/orgs","repos_url":"https://api.github.com/users/MikaelMayer/repos","events_url":"https://api.github.com/users/MikaelMayer/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelMayer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-05T21:23:48Z","updated_at":"2016-10-05T21:53:47Z","closed_at":null,"body":"Hello,\r\nI switched from version 1.2.4 to 1.6.18, and now sbt compile fails to build the project and throws an undocummented \"Failed to merge manifest files\" exception.\r\n\r\nI have a non-sbt android project `google-play-services_lib`, on which depends another project `ProjectBase`, on which an\r\nnother project `ProjectOne` depends. I want to compile ProjectOne.\r\nI set up in my `project/build.scala` file the setting `mergeManifests `to `false` l`the following way:\r\n\r\n```scala\r\nimport sbt._\r\nimport Keys._\r\nimport android.Keys._\r\n\r\nobject General {\r\n  ...\r\n  val settings = Defaults.defaultSettings ++ \r\n                 android.Plugin.androidBuild ++ Seq (\r\n\r\n    name         := buildName,\r\n    organization := buildOrganization,\r\n    scalaVersion := buildScalaVersion,\r\n    platformTarget in Android := \"android-\" + buildAndroidVersion,\r\n    proguardScala in Android := true,\r\n    debugIncludesTests in Android := false,\r\n    \r\n    mergeManifests in Android := false,\r\n  ...\r\n   )\r\n}\r\n\r\nobject AndroidBuild extends Build {\r\n  lazy val main = Project (\r\n    General.buildName,\r\n    file(\".\"),\r\n    settings = General.settings\r\n  )\r\n}\r\n```\r\n\r\nBut I keep having the same error:\r\n\r\n```\r\n[error] Failed to merge manifest files:\r\n[error]     C:\\...\\ProjectOne\\AndroidManifest.xml\r\n[error]     C:\\...\\ProjectOne\\..\\ProjectBase\\AndroidManifest.xml\r\n[error]     C:\\...\\ProjectOne\\..\\ProjectBase\\..\\google-play-services_lib\\AndroidManifest.xml\r\n[error] (android:processManifest) Failed to merge manifest files:\r\n[error]     C:\\...\\ProjectOne\\AndroidManifest.xml\r\n[error]     C:\\...\\ProjectOne\\..\\ProjectBase\\AndroidManifest.xml\r\n[error]     C:\\...\\ProjectOne\\..\\ProjectBase\\..\\google-play-services_lib\\AndroidManifest.xml\r\n```\r\n\r\nEven when I completely empty the manifest of the library projects, I get the same error.\r\nIf I remove the two manifest, I get the following error:\r\n\r\n```\r\nFailed to merge manifest files:\r\n[error]     C:\\...\\ProjectOne\\AndroidManifest.xml\r\n[error] (android:autolibs) Return code 1 for process 'C:\\pfx86\\Android\\android-sdk\\build-tools\\21.1.2\\aapt.exe package -f --no-crunch -I C:\\pfx86\\Android\\android-sdk\\platforms\\android-19\\android.jar -M C:\\...\\ProjectOne\\..\\ProjectBase\\AndroidManifest.xml -S C:...\\ProjectOne\\..\\ProjectBase\\res -A C:\\...\\ProjectOne\\..\\ProjectBase\\assets -m -J C:\\...\\ProjectOne\\..\\ProjectBase\\bin\\generated\\source -G C:\\...\\ProjectOne\\..\\ProjectBase\\bin\\intermediates\\proguard\\proguard.txt --debug-mode --non-constant-id -0 apk --output-text-symbols C:\\...\\ProjectOne\\..\\ProjectBase\\bin\\generated\\source'\r\n[error] (android:processManifest) Failed to merge manifest files:\r\n```\r\nSo obviously it requires a manifest from ProjectBase. But as soon as I re-add the manifest, it also requires a manifest from google-play-services_lib !\r\n\r\nHow can I fix this problem? I had no problem before, this looks like a regression bug.\r\nThanks for your time."},"comment":{"url":"https://api.github.com/repos/scala-android/sbt-android/issues/comments/251810752","html_url":"https://github.com/scala-android/sbt-android/issues/289#issuecomment-251810752","issue_url":"https://api.github.com/repos/scala-android/sbt-android/issues/289","id":251810752,"user":{"login":"pfn","id":512197,"avatar_url":"https://avatars.githubusercontent.com/u/512197?v=3","gravatar_id":"","url":"https://api.github.com/users/pfn","html_url":"https://github.com/pfn","followers_url":"https://api.github.com/users/pfn/followers","following_url":"https://api.github.com/users/pfn/following{/other_user}","gists_url":"https://api.github.com/users/pfn/gists{/gist_id}","starred_url":"https://api.github.com/users/pfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfn/subscriptions","organizations_url":"https://api.github.com/users/pfn/orgs","repos_url":"https://api.github.com/users/pfn/repos","events_url":"https://api.github.com/users/pfn/events{/privacy}","received_events_url":"https://api.github.com/users/pfn/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T21:53:47Z","updated_at":"2016-10-05T21:53:47Z","body":"for now, as a workaround, to get the stack back:\r\n\r\n1. clone the project\r\n2. modify this line to throw a RuntimeException instead of MessageOnlyException https://github.com/scala-android/sbt-android/issues/289\r\n3. sbt publish-local\r\n4. run your project again"}}
{"actor":{"display_login":"pfn"}}