Unable to build for android

Rob, hello!

I try to answer on some of your clauses

  1. v2016.3016

  2. Only appodeal plugin

  3. macOS

  4. I’m building for android only

  5. didn’t try(see lower)

  6. No, i didn’t - (see lower)

  7. No, i didn’t

  8. 95.28.80.249

So the reason of avoiding 5-7 clauses is that I could to build app after 24 hours( like as sky256). There were no errors during the building. But I’ve got another message on my mobile device when i tried to SHOW ADs(see attached file)… But that might be relates to unclear code or some problems with appodeal immediatly. 

the initialization code

adProvider = "appodeal" function adListener( event ) print("asd") local msg = event.response -- Quick debug message regarding the response from the library print( "Message from the ads library: ", msg ) if ( event.isError ) then print( "Error, no ad received", msg ) else print( "Ah ha! Got one!" ) end end ads.init( adListener, {appId = "518e7293d9d79e23140de4f8a3eedf70c05b5a7ec5c4921c"})

and code when i try to launch AD in other scene

1.ads.show("interstitial")

It would happen in 1st scene but there floats the error

@vladoz260, then your not having this build for android error. Please start a new thread for your issue.

Thanks

Rob

@vladoz260

If you still have your issue, please post a new topic for it as it’s not related to this thread. 

I see what the issue is and can tell you how to solve it, plus I have some advice I’d like to give.

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:

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

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