Android build failed (1)

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

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

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!