Android build failed (1)

Hi,

when trying to build for Android (on a Win10 machine) I’m getting the strange error “Android build failed (1)”.

There is no more info in the console…

Anyone else getting this currently?

Edit: I’m user the latest public release but I’ve also tested today’s daily build - same result.

Cheer,

Chris

1. Do the test apps that come with Corona build?

If “Yes”, then check you build.settings file.

2. What version of Corona are you using?  

If not the latest, get up to at least  3135.

https://developer.coronalabs.com/downloads/daily-builds/

PS - I am building for Android on Win 10 using 2017.3135 and having no issues.

I’m using 3135 as well and also the Corona Cannon does not work :frowning:

This is really strange…

Any more info on “Android build failed (1)” would be highly appreciated.

Finally! I found the problem, although it doesn’t make sense at all.

I used to save by builds directly info “d:” which was always working.

If I do that now, the build ends with this error “Android build failed (1)”.

I simply changed the path to the desktop and now everything is working!!! Yay!

Anyways - if someone from Corona staff is reading this - a more detailed error description could have saved me some time :slight_smile:

Cheer,

Chris

What type of drive is D:?  A physical hard drive, thumb drive? network drive? External hard drive?

Thanks

Rob

D: is my hard drive / data partition. I am often using d:\ for temporary data.

Cheers,
Chris

That’s odd.  I have multiple data drives and have no issues running projects out of them, saving to them, and building from them.

Sounds like you’ve got something going on in  your system that is blocking Corona…

PS - My primary data drive is X:, but I don’t think the name matters.

If it’s a physical hard drive, then we shouldn’t have an issue with it. Network drives can do weird things with path names and timing.

Rob

Not sure if I have something specific that blocks the build. I’ve tried it on 2 different machines with the same result.

But anyways - since it’s all working now - it’s all fine.

Just wanted to note that a message like “Android build failed (1)” is not very helpful :wink:

Thanks for the info, helped me narrow down why only some of my apps wouldnt compile.

I think I have figured out what is causing it!

Basically some of my older apps had a default “save to folder” path (in the build page) with a trailing “”

These all used to build successfully, but in the more recent builds no longer does so.

The simple solution is to remove the trailing “” (so my build path was c:\coding\ which failed while c:\coding succeeded)

It’s made more than 6 month I haven’t build something and I have the issue. I have update today (2018.3241) corona with daily build.

My path seem to be ok

Do I have to update something in my build setting?

@remiduchlard, can you provide more context.  Are you getting a specific error message in your console log? Can you share that build log? Can you share a screen shot of your build dialog just before you click the build button?

Rob

Thank you @rob

Find below Console log after build, buildsetting, config, a sum up of the console before build.

Here a screen shot of the build menu : https://drive.google.com/open?id=1yMue9kxI8YhbDb96eMq5tzYn-scWZiYB

Here the consol log.

Testing credentials for 'C:\Users\remid\Desktop\Thallium\goh.keystore': Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en Using custom build id from app bundle: 00000 (AppSettings.lua) Using custom Build Id 00000 Excluding specified files from build: excluding: Icon.png excluding: Icon-??.png excluding: Icon-???.png excluding: LaunchScreen.storyboardc excluding: git/ excluding: notgoh/ excluding: Thumbs.db Note: debug info is not being stripped from application (settings.build.neverStripDebugInfo = true) BuildID: 5ab3a3af7743b WebServices: downloading build Android build failed (1) after 72 seconds

The last time I update the app it was in november.

My build setting file: 

settings = { build = {neverStripDebugInfo = true}, orientation = { default = "landscapeRight", supported = { "landscapeRight","landscapeLeft" } }, splashScreen={ enable=false, image="Default-Landscape.png" }, iphone = { plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, UIStatusBarHidden = true, UIPrerenderedIcon = true, UILaunchStoryboardName = "LaunchScreen", CFBundleIconFiles = { "Icon-40.png", "Icon-58.png", "Icon-76.png", "Icon-80.png", "Icon-87.png", "Icon-120.png", "Icon-152.png", "Icon-167.png", "Icon-180.png", }, } }, window = { defaultMode = "fullscreen", resizable = true, enableMaximizeButton = true, titleText = { default = "Stronghold", }, }, excludeFiles = { -- Exclude all files at paths which end with "secret.txt" -- pour version dev voir dans niveau 1451 -- all={"Thumbs.db"}, --all ={"\*@4x.png","\*@4x.jpg","\*@4x.jpeg","\*@6x.png","\*@6x.jpg","\*@6x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","git/"},-- version lte --"\*@8x.png","\*@8x.jpg","\*@8x.jpeg" }, -- "\*@4x.png" --{"\*@8x.png","\*@8x.jpg","\*@8x.jpeg","git/"} --all ={"\*@4x.png","\*@4x.jpg","\*@4x.jpeg","\*@8x.png","\*@8x.jpg","\*@8x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","git/"},-- version mde --all ={"\*@8x.png","\*@8x.jpg","\*@8x.jpeg","\*@6x.png","\*@6x.jpg","\*@6x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","git/"}, -- version large --all ={"\*@4x.png","\*@4x.jpg","\*@4x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","git/"}, -- version mde lte (version pour superieur à 4.2pouce et IOS et lte avec suppression des suffixs pour android \<4.2) --all={"Thumbs.db","\*@5x.png","\*@5x.jpg","git/"}, --all ={"\*@4x.png","\*@4x.jpg","\*@4x.jpeg","\*@6x.png","\*@6x.jpg","\*@6x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","goh/","git/"}, -- lte not goh --all ={"\*@4x.png","\*@4x.jpg","\*@4x.jpeg","\*@8x.png","\*@8x.jpg","\*@8x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","goh/","git/"},-- version mde not goh --all ={"\*@4x.png","\*@4x.jpg","\*@4x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","goh/","git/"}, -- mdelte not goh --all ={"\*@8x.png","\*@8x.jpg","\*@8x.jpeg","\*@6x.png","\*@6x.jpg","\*@6x.jpeg","Thumbs.db","\*@5x.png","\*@5x.jpg","goh/","git/"}, -- large not goh all={"git/","notgoh/","Thumbs.db"}, -- version full de goh (faut créé un dossier avec tout notgoh) --all={"git/","notgoh/","Thumbs.db","\*@6x.png","\*@6x.jpg","\*@6x.jpeg"} -- version large de goh (faut créé un dossier avec tout notgoh) --all={"git/","notgoh/","Thumbs.db","\*@4x.png","\*@4x.jpg","\*@4x.jpeg"} -- version lte de goh (faut créé un dossier avec tout notgoh) android={ "Icon.png", "Icon-??.png", "Icon-???.png", "LaunchScreen.storyboardc", }, ios = { "Icon.png", "Icon-\*dpi.png", }, }, android = { isGame = true, supportsScreens = { smallScreens = true, normalScreens = true, largeScreens = true, xlargeScreens = true, }, largeHeap = true, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.WRITE\_INTERNAL\_STORAGE", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", }, usesFeatures = { { name="android.hardware.location", required=false }, { name="android.hardware.location.gps", required=false }, { name="android.hardware.location.network", required=false }, { name = "android.hardware.touchscreen", required = false}, }, }, plugins = { ["plugin.admob"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android-kindle"]=true } }, ["plugin.gameanalytics\_v2"] = { publisherId = "com.gameanalytics", supportedPlatforms = { iphone=true, android=true } }, }, }

Config file : 

application = { content = { width = 320, height = 480, scale = "letterBox", fps = 30, imageSuffix = { ["@6x"]=1, ["@4x"]=2.2 } }, license = { google = { my key }, }, }

Sum up of all dialog before build: 

Corona Simulator 2018.3241 (Mar 22 2018 03:15:06) Copyright (C) 2009-2018 C o r o n a L a b s I n c . Version: 3.0.0 Build: 2018.3241 Platform: GenericAndroidDevice / x64 / 10.0 / Intel(R) HD Graphics 520 / 4.4.0 - Build 21.20.16.4534 / 2018.3241 / fr\_FR | FR | fr\_FR | fr Loading project from: C:\Users\remid\Desktop\Thallium\3\_Kings Project sandbox folder: C:\Users\remid\AppData\Local\Corona Labs\Corona Simulator\Sandbox\3\_kings-2C9E7DCE31E27DDC316052B52DC584D0\Documents PluginSync: plugin com.coronalabs/plugin.admob needs to be updated for platform win32-sim to build number: 3049 PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.admob/2017.3049/win32-sim/plugin.admob.zip PluginSync: plugin com.coronalabs/plugin.google.iap.v3 needs to be updated for platform win32-sim to build number: 3105 PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.google.iap.v3/2017.3105/win32-sim/plugin.google.iap.v3.zip PluginSync: plugin com.coronalabs/plugin.amazon.iap needs to be updated for platform win32-sim to build number: 2731 PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.amazon.iap/2013.2731/win32-sim/plugin.amazon.iap.zip PluginSync: plugin com.gameanalytics/plugin.gameanalytics\_v2 needs to be updated for platform win32-sim to build number: 2949 PluginSync: downloading plugin: http://plugins.coronasphere.com/com.gameanalytics/plugin.gameanalytics\_v2/2016.2949/win32-sim/plugin.gameanalytics\_v2.zip Lua 5.1 Content: 512 x 320.00003051758 Content r: 1200 x 1920 issimulator collectgarbage main apres278.203125 ---------MEMORY USAGE INFORMATION removepartiel apres--------- System Memory Used: 0.278 Mb Texture Memory Used: 0.000 Mb ------------------------------------------ maxTextureSize 16384 imageSuffix @4x admob.init() WARNING: The AdMob plugin is only supported on Android & iOS devices. Please build for device &nbsp;

Can you run regedit.exe (as an Admin) and find this key:

 

HKEY_CURRENT_USER\Software\Ansca Corona\Corona Simulator\Preferences

 

Add a string value “debugBuildProcess” and give it a string of “1” “2” or “3”

 

This should increase the logging. You will probably want to exit the simulator first, then re-run it and try and build your project and see if more information is available?

 

Rob

Thank you @rob

Find below the new console information

Testing credentials for 'C:\Users\remid\Desktop\Thallium\goh.keystore': Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en Using custom build id from app bundle: 00000 (AppSettings.lua) Using custom Build Id 00000 Prepackage: Compiling Lua ... Excluding specified files from build: excluding: Icon.png excluding: Icon-??.png excluding: Icon-???.png excluding: LaunchScreen.storyboardc excluding: git/ excluding: notgoh/ excluding: Thumbs.db Note: debug info is not being stripped from application (settings.build.neverStripDebugInfo = true) Prepackage: Building server data file Prepackage: running: "C:\Program Files (x86)\Java\jdk1.6.0\_45\bin\java.exe" -Djava.class.path="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant.jar;C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant-launcher.jar;C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/AntLiveManifest.jar" org.apache.tools.ant.launch.Launcher -v -DTEMP\_DIR="C:\Users\remid\AppData\Local\Temp\Corona Labs\CLtmpa13828" -DSRC\_DIR="C:\Users\remid\Desktop\Thallium\3\_Kings" -DBUNDLE\_DIR="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources" -DLIVE\_BUILD=NO -DLIVE\_BUILD\_MANIFEST\_FILE= -f "C:\Program Files (x86)\Corona Labs\Corona SDK\Resources"/build.xml build-input-zip DeviceBuildData: {"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":3,"targetDevice":0,"splashScreen":{"enable":false,"image":"Default-Landscape.png"},"dailyBuildRevision":3241,"buildBucket":"ansca-templates","clientPlatform":"Win","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"5fbd8f65f611bc4710bd23fdfdb5b3e4","plugins":{"plugin.admob":{"publisherId":"com.coronalabs"},"plugin.amazon.iap":{"supportedPlatforms":{"android-kindle":true},"publisherId":"com.coronalabs"},"plugin.gameanalytics\_v2":{"supportedPlatforms":{"android":true,"iphone":true},"publisherId":"com.gameanalytics"},"plugin.google.iap.v3":{"supportedPlatforms":{"android":true},"publisherId":"com.coronalabs"}},"dailyBuildYear":2018,"clientProductId":"basic","appName":"Gate of Heroes"} BuildID: 5ab4276e009a4 WebServices: downloading build Build: running: "C:\Program Files (x86)\Java\jdk1.6.0\_45\bin\java.exe" -Djava.class.path="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant.jar;C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant-launcher.jar" org.apache.tools.ant.launch.Launcher -v -DTEMP\_DIR="C:\Users\remid\AppData\Local\Temp\Corona Labs\CLtmpa13828" -DSRC\_DIR="C:\Users\remid\Desktop\Thallium\3\_Kings" -DDST\_DIR="C:\Users\remid\Desktop\Thallium\progra" -DUSER\_APP\_NAME="Gate of Heroes" -DBUNDLE\_DIR="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources" -DLIVE\_BUILD=NO -DLIVE\_BUILD\_ASSET\_DIR= -DKS="C:\Users\remid\Desktop\Thallium\goh.keystore" -DKP="XXXXXX" -DKA="artha-france" -DAP="XXXXXX" -DAV=4.0.3 -f "C:\Program Files (x86)\Corona Labs\Corona SDK\Resources"/build.xml build Android build failed (1) after 87 seconds

Consider trying to update your Java SDK to the latest version. You may need to update your keystore to a format compatible with the latest Java JDK.

I have updated jdk but I still have error 1 :frowning:

I haven’t change my laptop and a few month ago I was able to build

Testing credentials for 'C:\Users\remid\Desktop\Thallium\goh.keystore': 11:42:15.340 jar signed. 11:42:15.340 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 11:42:16.591 Using custom build id from app bundle: 00000 (AppSettings.lua) 11:42:16.591 11:42:16.591 Using custom Build Id 00000 11:42:16.591 Prepackage: Compiling Lua ... 11:42:16.607 Excluding specified files from build: 11:42:16.607 excluding: Icon.png 11:42:16.607 excluding: Icon-??.png 11:42:16.607 excluding: Icon-???.png 11:42:16.607 excluding: LaunchScreen.storyboardc 11:42:16.607 excluding: git/ 11:42:16.607 excluding: notgoh/ 11:42:16.607 excluding: Thumbs.db 11:42:16.607 Note: debug info is not being stripped from application (settings.build.neverStripDebugInfo = true) 11:42:18.437 Prepackage: Building server data file 11:42:18.437 Prepackage: running: "C:\Program Files (x86)\Java\jdk1.8.0\_161\bin\java.exe" -Djava.class.path="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant.jar;C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant-launcher.jar;C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/AntLiveManifest.jar" org.apache.tools.ant.launch.Launcher -v -DTEMP\_DIR="C:\Users\remid\AppData\Local\Temp\Corona Labs\CLtmpa08508" -DSRC\_DIR="C:\Users\remid\Desktop\Thallium\3\_Kings" -DBUNDLE\_DIR="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources" -DLIVE\_BUILD=NO -DLIVE\_BUILD\_MANIFEST\_FILE= -f "C:\Program Files (x86)\Corona Labs\Corona SDK\Resources"/build.xml build-input-zip 11:42:19.541 DeviceBuildData: {"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":3,"targetDevice":0,"splashScreen":{"enable":false,"image":"Default-Landscape.png"},"dailyBuildRevision":3241,"buildBucket":"ansca-templates","clientPlatform":"Win","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"5fbd8f65f611bc4710bd23fdfdb5b3e4","plugins":{"plugin.admob":{"publisherId":"com.coronalabs"},"plugin.amazon.iap":{"supportedPlatforms":{"android-kindle":true},"publisherId":"com.coronalabs"},"plugin.gameanalytics\_v2":{"supportedPlatforms":{"android":true,"iphone":true},"publisherId":"com.gameanalytics"},"plugin.google.iap.v3":{"supportedPlatforms":{"android":true},"publisherId":"com.coronalabs"}},"dailyBuildYear":2018,"clientProductId":"basic","appName":"Gate of Heroes"} 11:43:10.022 BuildID: 5ab4da0a7d149 11:43:10.270 WebServices: downloading build 11:43:31.162 Build: running: "C:\Program Files (x86)\Java\jdk1.8.0\_161\bin\java.exe" -Djava.class.path="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant.jar;C:\Program Files (x86)\Corona Labs\Corona SDK\Resources/ant-launcher.jar" org.apache.tools.ant.launch.Launcher -v -DTEMP\_DIR="C:\Users\remid\AppData\Local\Temp\Corona Labs\CLtmpa08508" -DSRC\_DIR="C:\Users\remid\Desktop\Thallium\3\_Kings" -DDST\_DIR="C:\Users\remid\Desktop\Thallium\progra" -DUSER\_APP\_NAME="Gate of Heroes" -DBUNDLE\_DIR="C:\Program Files (x86)\Corona Labs\Corona SDK\Resources" -DLIVE\_BUILD=NO -DLIVE\_BUILD\_ASSET\_DIR= -DKS="C:\Users\remid\Desktop\Thallium\goh.keystore" -DKP="XXXXXX" -DKA="artha-france" -DAP="XXXXXX" -DAV=4.0.3 -f "C:\Program Files (x86)\Corona Labs\Corona SDK\Resources"/build.xml build 11:43:42.050 Android build failed (1) after 86 seconds

In corona, is there something who verify if everything is install if the build failed ?

I still haven’t succeed to build :frowning:

You’re still running the 32 bit JDK, you could try the 64 JDK since we now support it.

I’ll see if there is any information on our build servers as to why it failed. 

Rob

possibly could be 

settings.build.neverStripDebugInfo = true