Onesignal build error 256 in Android

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).

Please upload your android manifest file for more detailed debugging

Share your build.settings file please.

Rob

This is the code:

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { splashScreen =      {         enable = false,         -- image = "splash.png"     }, orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, -- iphone = { "Icon-\*dpi.png", }, -- android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { xcassets = "Images.xcassets", plist = { -- Importante para poder hacer request de sitios no seguros NSAppTransportSecurity =             { NSExceptionDomains = { ["gym.masdedos.es"] =         { NSIncludesSubdomains = true,             NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,         }, ["ufit365.com"] =         { NSIncludesSubdomains = true,             NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,         }, ["panel.upro365.com"] =         { NSIncludesSubdomains = true,             NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,         }, ["panel.ufit365.com"] =         { NSIncludesSubdomains = true,             NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,         }, ["panel.uwork365.es"] =         { NSIncludesSubdomains = true,             NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,         }, },             }, UIBackgroundModes = {"remote-notification"}, -- Agregado por OneSignal UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", --UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = false, --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend NSLocationWhenInUseUsageDescription = "A description of why the app needs access to location services.", }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET",             "android.permission.CALL\_PHONE",             -- \*\*\*\*\*\*\*\*\*\*\*\*\* SÓLO PARA UWORK (Comentar en otro caso) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*             -- Permission to retrieve current location from the GPS             "android.permission.ACCESS\_FINE\_LOCATION",                          -- Permission to retrieve current location from WiFi or cellular service             "android.permission.ACCESS\_COARSE\_LOCATION",             -- \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* },         usesFeatures =         {             -- \*\*\*\*\*\*\*\*\*\*\*\*\* SÓLO PARA UWORK (Comentar en otro caso) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*             -- If you set permissions "ACCESS\_FINE\_LOCATION" and "ACCESS\_COARSE\_LOCATION" above,             -- you may want to set up your app to not require location services as follows.             -- Otherwise, devices that do not have location sevices (such as a GPS) will be unable             -- to purchase this app in the app store.             { name = "android.hardware.location", required = false },             { name = "android.hardware.location.gps", required = false },             { name = "android.hardware.location.network", required = false }             -- \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*         }, }, -- -- Plugins -- plugins =     {         ["plugin.OneSignal"] = -- Agregado por OneSignal     {         publisherId = "com.onesignal",     },     -- Omit if you're using 'plugin.googleAnalytics'     -- ["plugin.google.play.services"] = -- Agregado por OneSignal     -- {     --     publisherId = "com.coronalabs",     --     supportedPlatforms = { android=true, ["android-kindle"]=true },     -- },     -- Plugin para previsualizar pdfs y demás documentos     ["CoronaProvider.native.popup.quickLook"] =         {             publisherId = "com.coronalabs",     supportedPlatforms = { iphone=true, ["iphone-sim"]=true },         },         -- Plugin para mostrar el desplegable de redes sociales en las que compartir algo en Android.         ["CoronaProvider.native.popup.social"] =         {             publisherId = "com.coronalabs"         },          -- Plugin para mostrar el pop up de redes sociales en las que compartir algo en iOS.                ["CoronaProvider.native.popup.activity"] =         {             publisherId = "com.coronalabs",     supportedPlatforms = { iphone=true, ["iphone-sim"]=true },         },         -- Notificaciones locales         -- ["plugin.notifications.v2"] =         -- {         --    publisherId = "com.coronalabs"         -- },     }, }

I just have downloaded the newest Corona build 3517 and when trying to build for Android a huge package was downloaded first: Gradle I think

Then I get the error Failed to build / Error Code: 256

I have included the following new part with the applicationChildElementsto my build settings:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android = &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; googlePlayGamesAppId = "XXXXXXXXXXXXXX", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; versionCode="XX", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; versionName="X.X", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minSdkVersion = "14", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; largeHeap = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIStatusBarHidden = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usesPermissions = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.BILLING", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.CHECK\_LICENSE", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.VIBRATE" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usesFeatures = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { name="android.hardware.camera", required=false }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { name="android.hardware.location", required=false }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { name="android.hardware.location.gps", required=false }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- new added to make admob work &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applicationChildElements = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<meta-data android:name="com.google.android.gms.ads.APPLICATION\_ID" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:value="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXXX"/\>&nbsp; -- replace with your app id. See: https://goo.gl/fQ2neu &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]], &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; },

And in the log I get this message:

FAILURE: Build failed with an exception.

* What went wrong:
Gradle 5.1.1 requires Java 8 or later to run. You are currently using Java 7.

I tried to install Java 8 but it seems this is not working… I still get this message. Is The build system looking elsewhere for the Java version? Or how can I fix building again?

Any help welcome.

Have you tried to update to the latest Java JDK?

Rob

I now have and the JAVA problem is gone (thanks for this) BUT I still get the error message 256. Here is some info from the build panel:

FAILURE: Build failed with an exception. \* Where: Build file '/private/var/folders/gj/XXXXXXXXXXXXXXXX/T/CLtmpXXXXXXX/template/app/build.gradle.kts' line: 509 \* What went wrong: Forbidden

Any idea what can help here?

If you’re going to use any Corona build after 2019.3490, you’re using our Android 64-bit beta version. We are still working out the kinks on it. My suggestion is visiting our Android 64-bit testing forum, read the pinned post at the top. Follow the instructions to increase the build’s logging level and then share the error with us on that channel in a new thread. Don’t piggy back on someone else’s issue.

We are going to want to see your entire console log from the build, so use a service like pastebin.com so the forum post doesn’t get insanely long and share your complete build.settings with us. Pastebin is good for that too.

Rob

Okay, thanks a lot!

Please upload your android manifest file for more detailed debugging

Share your build.settings file please.

Rob

This is the code:

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { splashScreen =&nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; enable = false, &nbsp; &nbsp; &nbsp; &nbsp; -- image = "splash.png" &nbsp; &nbsp; }, orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, -- iphone = { "Icon-\*dpi.png", }, -- android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { xcassets = "Images.xcassets", plist = { -- Importante para poder hacer request de sitios no seguros NSAppTransportSecurity = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { NSExceptionDomains = { ["gym.masdedos.es"] = &nbsp; &nbsp; &nbsp; &nbsp; { NSIncludesSubdomains = true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true, &nbsp; &nbsp; &nbsp; &nbsp; }, ["ufit365.com"] = &nbsp; &nbsp; &nbsp; &nbsp; { NSIncludesSubdomains = true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true, &nbsp; &nbsp; &nbsp; &nbsp; }, ["panel.upro365.com"] = &nbsp; &nbsp; &nbsp; &nbsp; { NSIncludesSubdomains = true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true, &nbsp; &nbsp; &nbsp; &nbsp; }, ["panel.ufit365.com"] = &nbsp; &nbsp; &nbsp; &nbsp; { NSIncludesSubdomains = true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true, &nbsp; &nbsp; &nbsp; &nbsp; }, ["panel.uwork365.es"] = &nbsp; &nbsp; &nbsp; &nbsp; { NSIncludesSubdomains = true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true, &nbsp; &nbsp; &nbsp; &nbsp; }, }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, UIBackgroundModes = {"remote-notification"}, -- Agregado por OneSignal UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", --UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = false, --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend NSLocationWhenInUseUsageDescription = "A description of why the app needs access to location services.", }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.CALL\_PHONE", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- \*\*\*\*\*\*\*\*\*\*\*\*\* SÓLO PARA UWORK (Comentar en otro caso) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Permission to retrieve current location from the GPS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.ACCESS\_FINE\_LOCATION", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Permission to retrieve current location from WiFi or cellular service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.ACCESS\_COARSE\_LOCATION", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* }, &nbsp; &nbsp; &nbsp; &nbsp; usesFeatures = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- \*\*\*\*\*\*\*\*\*\*\*\*\* SÓLO PARA UWORK (Comentar en otro caso) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- If you set permissions "ACCESS\_FINE\_LOCATION" and "ACCESS\_COARSE\_LOCATION" above, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- you may want to set up your app to not require location services as follows. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Otherwise, devices that do not have location sevices (such as a GPS) will be unable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- to purchase this app in the app store. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { name = "android.hardware.location", required = false }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { name = "android.hardware.location.gps", required = false }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { name = "android.hardware.location.network", required = false } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* &nbsp; &nbsp; &nbsp; &nbsp; }, }, -- -- Plugins -- plugins = &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.OneSignal"] = -- Agregado por OneSignal &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.onesignal", &nbsp; &nbsp; }, &nbsp; &nbsp; -- Omit if you're using 'plugin.googleAnalytics' &nbsp; &nbsp; -- ["plugin.google.play.services"] = -- Agregado por OneSignal &nbsp; &nbsp; -- { &nbsp; &nbsp; --&nbsp; &nbsp; &nbsp;publisherId = "com.coronalabs", &nbsp; &nbsp; --&nbsp; &nbsp; &nbsp;supportedPlatforms = { android=true, ["android-kindle"]=true }, &nbsp; &nbsp; -- }, &nbsp; &nbsp; -- Plugin para previsualizar pdfs y demás documentos &nbsp; &nbsp; ["CoronaProvider.native.popup.quickLook"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; -- Plugin para mostrar el desplegable de redes sociales en las que compartir algo en Android. &nbsp; &nbsp; &nbsp; &nbsp; ["CoronaProvider.native.popup.social"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; },&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Plugin para mostrar el pop up de redes sociales en las que compartir algo en iOS.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ["CoronaProvider.native.popup.activity"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; -- Notificaciones locales &nbsp; &nbsp; &nbsp; &nbsp; -- ["plugin.notifications.v2"] = &nbsp; &nbsp; &nbsp; &nbsp; -- { &nbsp; &nbsp; &nbsp; &nbsp; --&nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; -- }, &nbsp; &nbsp; }, }

I just have downloaded the newest Corona build 3517 and when trying to build for Android a huge package was downloaded first: Gradle I think

Then I get the error Failed to build / Error Code: 256

I have included the following new part with the applicationChildElementsto my build settings:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android = &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; googlePlayGamesAppId = "XXXXXXXXXXXXXX", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; versionCode="XX", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; versionName="X.X", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minSdkVersion = "14", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; largeHeap = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIStatusBarHidden = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usesPermissions = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.BILLING", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.CHECK\_LICENSE", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.VIBRATE" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usesFeatures = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { name="android.hardware.camera", required=false }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { name="android.hardware.location", required=false }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { name="android.hardware.location.gps", required=false }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- new added to make admob work &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applicationChildElements = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<meta-data android:name="com.google.android.gms.ads.APPLICATION\_ID" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:value="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXXX"/\>&nbsp; -- replace with your app id. See: https://goo.gl/fQ2neu &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]], &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; },

And in the log I get this message:

FAILURE: Build failed with an exception.

* What went wrong:
Gradle 5.1.1 requires Java 8 or later to run. You are currently using Java 7.

I tried to install Java 8 but it seems this is not working… I still get this message. Is The build system looking elsewhere for the Java version? Or how can I fix building again?

Any help welcome.

Have you tried to update to the latest Java JDK?

Rob

I now have and the JAVA problem is gone (thanks for this) BUT I still get the error message 256. Here is some info from the build panel:

FAILURE: Build failed with an exception. \* Where: Build file '/private/var/folders/gj/XXXXXXXXXXXXXXXX/T/CLtmpXXXXXXX/template/app/build.gradle.kts' line: 509 \* What went wrong: Forbidden

Any idea what can help here?

If you’re going to use any Corona build after 2019.3490, you’re using our Android 64-bit beta version. We are still working out the kinks on it. My suggestion is visiting our Android 64-bit testing forum, read the pinned post at the top. Follow the instructions to increase the build’s logging level and then share the error with us on that channel in a new thread. Don’t piggy back on someone else’s issue.

We are going to want to see your entire console log from the build, so use a service like pastebin.com so the forum post doesn’t get insanely long and share your complete build.settings with us. Pastebin is good for that too.

Rob

Okay, thanks a lot!