Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Onesignal build error 256 in Android
Started by gongalf Aug 06 2019 02:29 AM

2 replies to this topic
onesignal android build failed error code: 256
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 2 posts
  • Corona SDK

Hello, I get a Build Failed alert when I try to build my app in Android with onesignal plugin added to build.settings. This is the log:


Aug 06 12:24:22.648 Using java version "1.8.0_201"
                    Java™ SE Runtime Environment (build 1.8.0_201-b09)
                    Java HotSpot™ 64-Bit Server VM (build 25.201-b09, mixed mode)
Aug 06 12:24:23.356 Building Android app for *********** with 2019.3512
Aug 06 12:24:24.559 Using custom build id from app bundle: 00000 (AppSettings.lua)
Aug 06 12:24:28.871 BUILD SUCCESSFUL
                    Total time: 2 seconds
Aug 06 12:25:04.833 /private/var/folders/4j/m59mm3h17ml6d5mxx92l8wcr0000gn/T/CLtmpTKk4Re/template/app/src/main/AndroidManifest.xml:95:11-91 Error:
                    Element service#com.onesignal.SyncService at AndroidManifest.xml:95:11-91 duplicated with element declared at AndroidManifest.xml:82:11-92
                    /private/var/folders/4j/m59mm3h17ml6d5mxx92l8wcr0000gn/T/CLtmpTKk4Re/template/app/src/main/AndroidManifest.xml Error:
                    Validation failed, exiting
                    FAILURE: Build failed with an exception.
                    * What went wrong:
Aug 06 12:25:04.841 Execution failed for task ':App:processReleaseManifest'.
                    > Manifest merger failed with multiple errors, see logs
Aug 06 12:25:04.842 * Try:
                    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                    * Get more help at https://help.gradle.org
                    BUILD FAILED in 35s
Aug 06 12:25:05.591 Excluding specified files from build: 
                       excluding: LaunchScreen.storyboardc
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Android build failed (256) after 41 seconds
Aug 06 12:25:05.834 ERROR: Build Failed: Failed to Build
                    Error code: 256

Does anyone know what happens?

Thanks in advance.
P.S.: It built fine with previous versions (Corona-3490).

[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 29 posts
  • Corona SDK

Please upload your android manifest file for more detailed debugging

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,900 posts
  • Enterprise

Share your build.settings file please.




Also tagged with one or more of these keywords: onesignal, android, build failed, error code: 256