| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I am using Android Studio 3.1.3 with latest android SDK and wanted to upgrade the project in Kony 8 but build is failing due to the below error. Please find the below logs for more details.
- Error:
- [exec-shell] \tAttribute application@allowBackup value=(false) from AndroidManifest.xml:6:214-243
- [exec-shell] \tis also present at [:syncv2library-release:] AndroidManifest.xml:17:9-35 value=(true).
- [exec-shell] \tSuggestion: add tools:replace=\"android:allowBackup\" to element at AndroidManifest.xml:6:5-68:16 to override.
- [exec-shell]
- [exec-shell] FAILURE: Build failed with an exception.
- [exec-shell]
- [exec-shell] - What went wrong:
- [exec-shell] Execution failed for task :processDebugManifest.
- [exec-shell] > Manifest merger failed with multiple errors, see logs
- [exec-shell]
- [exec-shell] - Try:
- [exec-shell] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
- [exec-shell] :processDebugManifest
- [exec-shell] AndroidManifest.xml:81:2-92 Warning:
- [exec-shell] \tElement uses-permission#android.permission.ACCESS_NETWORK_STATE at AndroidManifest.xml:81:2-92 duplicated with element declared at AndroidManifest.xml:78:2-75
- [exec-shell] AndroidManifest.xml:87:7-67 Warning:
- [exec-shell] \tElement uses-permission#android.permission.VIBRATE at AndroidManifest.xml:87:7-67 duplicated with element declared at AndroidManifest.xml:85:7-67
- [exec-shell]
- [exec-shell] See //g.co/androidstudio/manifest-merger', 'URL')">http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
- [exec-shell]
- [exec-shell] :processDebugManifest FAILED
- [exec-shell]
- [exec-shell] BUILD FAILED
- [exec-shell]
- [exec-shell] Total time: 37.722 secs
- The following error occurred while executing this line:build/luaandroid/build.xml:2654: exec-shell returned: 1
- Ant build error=The following error occurred while executing this line:/luaandroid/build.xml:2654: exec-shell returned: 1
- The following error occurred while executing this line:/build/luaandroid/build.xml:2654: exec-shell returned: 1
- Package Generation failed for platform Android.
- Build Generation Status
- Android: Failed
- Application
- Total time taken: 122583 ms
- <----------- Build Generation job is completed--------------->