Android build failed (1)

I have tried without “neverStripDebugInfo” but that doesn’t resolve the issue.

I uninstall java and install java 8 x64

10:32:58.147 Testing credentials for 'C:\Users\remid\Desktop\Thallium\goh.keystore': 10:32:59.500 jar signed. 10:32:59.500 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 10:33:00.546 Using custom build id from app bundle: 00000 (AppSettings.lua) 10:33:00.546 10:33:00.546 Using custom Build Id 00000 10:33:00.546 Prepackage: Compiling Lua ... 10:33:00.546 Excluding specified files from build: 10:33:00.546 excluding: Icon.png 10:33:00.557 excluding: Icon-??.png 10:33:00.557 excluding: Icon-???.png 10:33:00.557 excluding: LaunchScreen.storyboardc 10:33:00.557 excluding: git/ 10:33:00.557 excluding: notgoh/ 10:33:00.557 excluding: Thumbs.db 10:33:00.557 Note: debug info is not being stripped from application (settings.build.neverStripDebugInfo = true) 10:33:01.561 Prepackage: Building server data file 10:33:01.561 Prepackage: running: "C:\Program Files\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\CLtmpa09516" -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 10:33:02.600 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"} 10:33:57.725 BuildID: 5aba01bd10383 10:33:58.005 WebServices: downloading build 10:34:14.516 Build: running: "C:\Program Files\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\CLtmpa09516" -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 10:34:24.931 Android build failed (1) after 84 seconds

I’m asking Engineering to see if they see why it’s failing. There are no error messages that I see other than it failed.

Rob

Have you tried converting your keystore to the new pks12 format?  You can run something like:

keytool -importkeystore -srckeystore mystore.keystore  -destkeystore newstore.keystore  -deststoretype pkcs12 -srcstorepass storepass -deststorepass storepass -srckeypass keypass -destkeypass storepass -srcalias keyalias

You will need to provide the path to keytool.exe which is in your Java JDK/bin folder. You will need to provide the names of your existing keystore, your output new keystore and the various passwords needed.

It’s probably best to run cmd.exe and do a “cd” (change directory") command to where your existing keystore is so this command doesn’t get insanely long.

Rob

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)

Hello,

I have try but I have some problems. The error display is: 

Avertissement : les mots de passe de clé et de banque distincts ne sont pas pris en charge pour les fichiers de clés d’accès PKCS12. La valeur -destkeypass spécifiée par l’utilisateur est ignorée.

erreur keytool : java.io.IOException: Keystore was tampered with, or password was incorrect

Is it possible to send my keystore with the two password(I have nothing to loose ^^)?

You should be able to specify different passwords for the keystore file and each alias.

Rob

Yes I should be able to specify the two different passwords…

I have found the problem! I wasn’t able to convert the keystore because I had one in my user folder (C/user/MyUser/)

Thank you for your help!

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