Unable to build for android

When i try to build for android with corona Version 2016.2992 (2016.11.10) it shows me this message:

Activated fonts in ‘Lato-Bold.ttf’ (Lato-Bold)

Activated fonts in ‘Lato-Regular.ttf’ (Lato-Regular)

 

Copyright © 2009-2016  C o r o n a   L a b s   I n c .

Version: 3.0.0

Build: 2016.2992

Activated fonts in ‘fonts/square_721_bt_roman.ttf’ (Square721BT-Roman)

 

Copyright © 2009-2016  C o r o n a   L a b s   I n c .

Version: 3.0.0

Build: 2016.2992

Loading project from:   ~/Documents/Colors 2

Project sandbox folder: ~/Library/Application Support/Corona Simulator/Colors 2-642100CB5727AD9962EF87ABAE1FE85B

Platform: iPhone / x86_64 / 10.12.2 / Intel® Iris™ Graphics 6100 / 2.1 INTEL-10.22.25 / 2016.2992 / ru-RU | RU | ru_RU | ru

parseHTTPDateFormat: missing date

ERROR: Runtime error

bad argument #1 to ‘char’ (invalid value)

stack traceback:

C: in function ‘char’

?: in function <?:1205>

C: in function ‘gsub’

?: in function ‘unescape’

?: in function ‘?’

?: in function <?:496>

WARNING: /Users/VV/Documents/Colors 2/iap.lua:47: the store API is not supported on this platform

WARNING: /Users/VV/Documents/Colors 2/iap.lua:47: the store API is not supported on this platform

Using java version “1.8.0_91”

Java™ SE Runtime Environment (build 1.8.0_91-b14)

Java HotSpot™ 64-Bit Server VM (build 25.91-b14, mixed mode)

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

jar signed.

Testing credentials for ‘/Users/VV/Colors.keystore’: Building android app for s**** with 2016.2992

 

BUILD SUCCESSFUL

Total time: 0 seconds

Excluding specified files from build: 

   excluding: Icon.png

   excluding: Icon-Small-*.png

   excluding: Icon*@2x.png

BuildID: kCoronaBuild [A device build error occurred on the server. 

 

Error: 

BuildID: 5872e55f91854

ERROR: An error occurred during build (corona.build.7). The server returned the following message:


A device build error occurred on the server. 

 

Error: 

BuildID: 5872e55f91854


Android build failed (5) after 4 seconds

ERROR: Build Failed: A device build error occurred on the server. 

 

Error: 

BuildID: 5872e55f91854

 

Error code: 5

However, i can make a build for ios without any issues.

I use mac os sierra 10.12.2. 

Please, help

Update: When i changed corona sdk version to daily build Version 2016.3012 (2016.12.29) i have got another message:

Error: Get plugin manifest 

Could not read manifest for plugin.

 

Plugin: plugin.appodeal 

Publisher: com.coronalabs 

User Account: s------------

 

BuildID: 5872edfa5c673

ERROR: An error occurred during build (corona.build.7). The server returned the following message:


A device build error occurred on the server. 

 

Error: Get plugin manifest 

Could not read manifest for plugin.

 

Plugin: plugin.appodeal 

Publisher: com.coronalabs 

User Account: s------------

 

BuildID: 5872edfa5c673


Android build failed (5) after 4 seconds

2017-01-09 05:57:16.873 Corona Simulator[2148:68989] logEvent: key: target

2017-01-09 05:57:16.873 Corona Simulator[2148:68989] logEvent: key: reason

ERROR: Build Failed: A device build error occurred on the server. 

 

Error: Get plugin manifest 

Could not read manifest for plugin.

 

Plugin: plugin.appodeal 

Publisher: com.coronalabs 

User Account: s-------------

 

BuildID: 5872edfa5c673

 

Error code: 5

I use appodeal plugin.

If you are using google play services plugin , just remove it & try to build or else you can update corona sdk version & use it.

if possible share your build.settings & lib you require for IAP.

-Assif

Thanks for your reply. Unfortunately, removing google play services plugin didn’t help. I use the latest corona sdk. 

Here is my build.settings

settings =

{

    

    window = 

    {

        suspendWhenMinimized = true,

    },

 

    splashScreen = 

    {

        enable = false

    },

 

  plugins =

  {

 

    --[“CoronaProvider.gameNetwork.apple”] =

    –   {

    –       publisherId = “com.coronalabs”,

    –       supportedPlatforms = { iphone=true },

    –  },

 

  [“plugin.appodeal”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true }

        }, 

        

      [“plugin.google.play.services”] =

       {

            publisherId = “com.coronalabs”,

           supportedPlatforms = { android=true }

       },

   

    [“plugin.google.iap.v3”] = 

      {

      publisherId = “com.coronalabs”,

      supportedPlatforms = { android=true }

 },

    

  },     

 

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

 

default = “portrait”,

supported = { “portrait”, }

},

 

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

 

– iOS Section

iphone =

{

plist =

{

MinimumOSVersion = “8.0”,

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

 

            NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },

 

CFBundleIconFiles =

{

  “Icon-40.png”,

      “Icon-40@2x.png”,

      “Icon-60@2x.png”,

      “Icon-72.png”,

      “Icon-72@2x.png”,

      “Icon-76.png”,

      “Icon-76@2x.png”,

      “Icon-Small-50.png”,

      “Icon-Small-50@2x.png”,

      “Icon-Small.png”,

      “Icon-Small@2x.png”,

      “Icon.png”,

      “Icon@2x.png”,

      “Icon-Small@3x.png”,

      “Icon-40@3x.png”,

      “Icon-60@3x.png”,

      “Icon-40@2x.png”,

      “Icon-Small.png”,

      “Icon-Small@2x.png”,

      “Icon-83.5@2x.png”,

      “NotificationIcon@2x.png”,

      “NotificationIcon@3x.png”,

      “NotificationIcon~ipad.png”,

      “NotificationIcon~ipad@2x.png”

    

},

 

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

 

– Android Section

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

“com.android.vending.BILLING”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “android.permission.ACCESS_COARSE_LOCATION”,

            “android.permission.WRITE_EXTERNAL_STORAGE”

},

},

}

There seems to be a lot of moving parts with this post. Let’s slow down and address one thing at a time.

Please remove this block from your build.settings:

&nbsp; &nbsp; &nbsp; ["plugin.google.play.services"] = &nbsp; &nbsp; &nbsp; &nbsp;{ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp;},

Then try and build your app. Copy/Paste the build error exactly as it appears. Please do this with 3012.

Thanks

Rob

After 20 min of waiting i stopped the process. I have got this message:

Using java version “1.8.0_91”

Java™ SE Runtime Environment (build 1.8.0_91-b14)

Java HotSpot™ 64-Bit Server VM (build 25.91-b14, mixed mode)

Building android app for s----- with 2016.3012

Using custom build id from app bundle: 00000 (AppSettings.lua)

2017-01-10 04:10:14.317 Corona Simulator[9646:467275] logEvent: key: target

2017-01-10 04:10:14.317 Corona Simulator[9646:467275] logEvent: key: store

 

BUILD SUCCESSFUL

Total time: 0 seconds

Excluding specified files from build: 

   excluding: Icon.png

   excluding: Icon-Small-*.png

   excluding: Icon*@2x.png

WebServices: XMLRPC request failed

2017-01-10 04:30:12.656 Corona Simulator[9646:467275] logEvent: key: target

WARNING: Build stopped by request

Android build failed (11) after 1198 seconds

Try updating to daily build 3007 or later and see if that changes anything?

Also try building “HelloWorld” sample app.

Rob

“Hello world” was built with no issues. 

Switching to version 3007 didn’t change anything.

Using java version “1.8.0_91”

                    Java™ SE Runtime Environment (build 1.8.0_91-b14)

                    Java HotSpot™ 64-Bit Server VM (build 25.91-b14, mixed mode)

янв. 10 05:01:13.201 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

янв. 10 05:01:13.607 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

янв. 10 05:01:15.122 jar signed.

янв. 10 05:01:15.122 

янв. 10 05:01:19.274 Testing credentials for ‘/Users/VV/Triscolor.keystore’: Building android app for sky256@yandex.ru with 2016.3007

янв. 10 05:01:21.677 Using custom build id from app bundle: 00000 (AppSettings.lua)

янв. 10 05:01:21.677 2017-01-10 05:01:21.676 Corona Simulator[10271:497462] logEvent: key: target

                    2017-01-10 05:01:21.676 Corona Simulator[10271:497462] logEvent: key: store

янв. 10 05:01:22.606 BUILD SUCCESSFUL

                    Total time: 0 seconds

янв. 10 05:10:17.551 Excluding specified files from build: 

                       excluding: Icon.png

                       excluding: Icon-Small-*.png

                       excluding: Icon*@2x.png

                    WebServices: XMLRPC request failed

янв. 10 05:10:17.804 2017-01-10 05:10:17.803 Corona Simulator[10271:497462] logEvent: key: target

янв. 10 05:10:17.805 WARNING: Build stopped by request

янв. 10 05:10:17.805 

янв. 10 05:10:18.090 Android build failed (11) after 537 seconds

By the way, my post above was made with version 3016. 

I have just tried to remove appodeal plugin from my build.settings file, and it has helped. I have build my project with no issues.

Is it something wrong with appodeal plugin on Corona’s side? 

The appodeal plugin is very large. If you’re on a weak network connection, it can take too long to download.

Rob

My network connection is fast enough ( i could download corona sdk in couple of minutes) and don’t think it is a problem. Also, I build for ios without any delays. 

Waited 45 min with no luck

Using java version “1.8.0_91”

Java™ SE Runtime Environment (build 1.8.0_91-b14)

Java HotSpot™ 64-Bit Server VM (build 25.91-b14, mixed mode)

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

jar signed.

Testing credentials for ‘/Users/VV/Triscolor.keystore’: Building android app for s------- with 2016.3012

Using custom build id from app bundle: 00000 (AppSettings.lua)

2017-01-10 06:11:34.506 Corona Simulator[11086:539427] logEvent: key: target

2017-01-10 06:11:34.506 Corona Simulator[11086:539427] logEvent: key: store

 

BUILD SUCCESSFUL

Total time: 0 seconds

Excluding specified files from build: 

   excluding: Icon.png

   excluding: Icon-Small-*.png

   excluding: Icon*@2x.png

WebServices: XMLRPC request failed

2017-01-10 06:55:50.753 Corona Simulator[11086:539427] logEvent: key: target

WARNING: Build stopped by request

Android build failed (11) after 2657 seconds

There are a couple of reports of build failures around Appodeal. Can you try commenting that out and see if it changes things?

Also when you wait “waited 45 minutes” are you saying you wanted that amount of time between build attempts or you hit the build button and after 45 minutes it gave you a build error or after 45 minutes you stopped the build?

Thanks!

Rob

I meant “after 45 min i stopped the build”. Sorry, if i wasn’t clear.

Suddenly, today I have built my project without any problems. I have no idea what happened. I did change nothing in my “build.settings” file.

Many thanks to assif_tiger, Rob for your help!

sky256, Most Welcome :slight_smile:

ERROR: Build Failed: A device build error occurred on the server. 

                    

                    Error: 

                    BuildID: 5878aba502331

                    

                    Error code: 5

I’ve got the same issue, I think. So… what was the solution?? 

I find out that my internet connection could be the source of problems with building process. I couldn’t build for android at home, moved my laptop to the nearest starbucks and built with no issues. I still have no idea what connection preferences I have to change to be able to build from home.

Hm! So, did you keep the “plugin.appodeal… blah blah blah” string in your build.settings?

Yes, I did change nothing in my build.settings

Missed this thread, same thing going on over here: https://forums.coronalabs.com/topic/67350-android-server-build-failed/

For me its including Kidoz or Supersonic or Google Play Services that breaks it.

Hey everyone. This thread is getting unmanageable and I seriously could use your help to keep things straight.

There are two types of build errors:

  1. Happens all the time, can’t build at all.

  2. Happens from time to time.

I really need these separated out. Then I need to know:

  1. What build of Corona SDK are you using.

  2. What platform are you building on (Windows, macOS)

  3. What plugins are you using.

  4. Are you building for iOS or Android when it fails (or is it failing for both)

  5. Can you build HelloWorld successfully for the platform it’s failing for?

  6. Can you post the complete error message from the Corona Console log (Copy/Paste please, no screen shots).

  7. Can you try to use a different network connection?

  8. What is  your IP address. If you don’t know:  http://www.whatsmyip.org/ or http://whatismyipaddress.com/ (one was giving me an IPv4 address the other an IPv6).

I’m trying to avoid asking for build.settings files because they can be massive, I may come back on a case by case basis and ask for it.

Thanks

Rob