Title: 'Could not find the AndroidManifest.xml file' error using AA 4.4.0-SNAPSHOT and Android Gradle plugin 3.0.0-alpha7 with productFlavors · Issue #2028 · androidannotations/androidannotations · GitHub
Open Graph Title: 'Could not find the AndroidManifest.xml file' error using AA 4.4.0-SNAPSHOT and Android Gradle plugin 3.0.0-alpha7 with productFlavors · Issue #2028 · androidannotations/androidannotations
X Title: 'Could not find the AndroidManifest.xml file' error using AA 4.4.0-SNAPSHOT and Android Gradle plugin 3.0.0-alpha7 with productFlavors · Issue #2028 · androidannotations/androidannotations
Description: Using the latest 4.4.0-SNAPSHOT version of AA with the latest Android Gradle alpha, locating the AndroidManifest.xml file fails when using product flavors. I believe this issue may also be related to #2024 Taken from the example here: ht...
Open Graph Description: Using the latest 4.4.0-SNAPSHOT version of AA with the latest Android Gradle alpha, locating the AndroidManifest.xml file fails when using product flavors. I believe this issue may also be related ...
X Description: Using the latest 4.4.0-SNAPSHOT version of AA with the latest Android Gradle alpha, locating the AndroidManifest.xml file fails when using product flavors. I believe this issue may also be related ...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/2028
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'Could not find the AndroidManifest.xml file' error using AA 4.4.0-SNAPSHOT and Android Gradle plugin 3.0.0-alpha7 with productFlavors","articleBody":"Using the latest 4.4.0-SNAPSHOT version of AA with the latest Android Gradle alpha, locating the AndroidManifest.xml file fails when using product flavors.\r\n\r\nI believe this issue may also be related to https://github.com/androidannotations/androidannotations/issues/2024\r\n\r\nTaken from the example here: https://github.com/WonderCsabo/androidannotations/blob/2024_example/examples/gradle/build.gradle\r\n\r\nMake the following changes:\r\n#### Modified the Gradle Android plugin to **3.0.0-alpha7** and enable Kotlin/Kapt\r\n```groovy\r\nbuildscript {\r\n dependencies {\r\n classpath \"com.android.tools.build:gradle:3.0.0-alpha7\"\r\n classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0\"\r\n }\r\n}\r\n\r\napply plugin: \"kotlin-android\"\r\napply plugin: \"kotlin-kapt\"\r\n```\r\n\r\n#### Added a **flavorDimension** of `flavor` and **productFlavor** of `some_flavor`\r\n```groovy\r\nandroid {\r\n flavorDimensions \"flavor\"\r\n productFlavors {\r\n some_flavor {\r\n println \"Defining the product flavor 'some_flavor'\"\r\n }\r\n }\r\n}\r\n```\r\n\r\n#### Modify AA dependency to use `kapt` instead of `annotationProcessor`\r\n```groovy\r\ndependencies {\r\n kapt \"org.androidannotations:androidannotations:$AAVersion\"\r\n}\r\n```\r\n\r\n**Trying to compile the application with these changes throws an error, unable to locate AndroidManifest.xml in the generated folder.**\r\n\r\n```\r\n# ./gradlew assembleSome_flavorDebug\r\n\r\n\u003e Configure project :\r\nDefining the product flavor 'some_flavor'\r\n\r\nw: The '-d' option with a directory destination is ignored because '-module' is specified\r\ne: error: Could not find the AndroidManifest.xml file, using generation folder [androidannotations/examples/kotlin/build/generated/source/kapt/some_flavorDebug])\r\ne:\r\n\r\ne: androidannotations/examples/kotlin/src/main/kotlin/org/androidannotations/gradle/activity/HelloAndroidActivity.kt: (1, 1): Some error(s) occurred while processing annotations. Please see the error messages above.\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':kaptSome_flavorDebugKotlin'.\r\n\u003e Compilation error. See log for more details\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\nBUILD FAILED in 1s\r\n13 actionable tasks: 1 executed, 12 up-to-date\r\n```\r\n\r\n[Link to full modified build.gradle](https://gist.github.com/ahornerr/3a82d3958a79621d520c4284392a3f17)\r\n\r\nChecking the generated path that the error spits out, `androidannotations/examples/kotlin/build/generated/source/kapt/some_flavorDebug/` is empty. \r\n\r\nUp a level at `androidannotations/examples/kotlin/build/generated/source/kapt/` there is an `androidannotations.log` file with the following contents:\r\n\r\n```\r\n14:31:52.154 [RMI TCP Connection(51)-127.0.0.1] ERROR o.a.i.h.AndroidManifestFinder:147 - Could not find the AndroidManifest.xml file, using generation folder [androidannotations/examples/kotlin/build/generated/source/kapt/some_flavorDebug])\r\n```\r\n\r\nUpon further research, I can see that the manifest is being generated to `androidannotations/examples/kotlin/build/intermediates/manifests/full/some_flavor/debug/AndroidManifest.xml` but it doesn't seem like AA is picking it up.\r\n\r\n#### AndroidAnnotations version:\r\n4.4.0-SHAPSHOT\r\n\r\n#### Android compile SDK version:\r\n25\r\n","author":{"url":"https://github.com/ahornerr","@type":"Person","name":"ahornerr"},"datePublished":"2017-07-24T18:38:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/2028/androidannotations/issues/2028"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c172d0a-1568-01a5-6d2d-246f57a4a2f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD40:6C60F:230B7A:3C7298:6A61C12E |
| html-safe-nonce | 90063afb76bdd2f9665b4d89f1f59c24a0c6e621a6d18c40f51aef5cdbabb29c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDQwOjZDNjBGOjIzMEI3QTozQzcyOTg6NkE2MUMxMkUiLCJ2aXNpdG9yX2lkIjoiMTE2OTQ0OTk5MjI0NTU5MjM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c0a77126bf2c7e417733b0c9e66b00c634d1b27e716384706eb330d9fa77df6e |
| hovercard-subject-tag | issue:245171163 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/2028/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d188534206ddd111ee118f8a30e6bbbd9451726cea2c092eb6107617ee69f1fa/androidannotations/androidannotations/issues/2028 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d188534206ddd111ee118f8a30e6bbbd9451726cea2c092eb6107617ee69f1fa/androidannotations/androidannotations/issues/2028 |
| og:image:alt | Using the latest 4.4.0-SNAPSHOT version of AA with the latest Android Gradle alpha, locating the AndroidManifest.xml file fails when using product flavors. I believe this issue may also be related ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahornerr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width