Unable to build Android APK file

I am trying to build my project from Kwik. I built a New Universal book, and have used corona to make and upload 5 apps to the Apple store and am familiar with how it works.  But Now I am working on switching them all to android and trying to build in Corona. Since Kwik seems to build it all, I am not sure if I am supposed to add something else?

I try to build and get this warning: 

Failed to build APK

Warning: Could not find file /var/folders/67/gmgvg54s7f11pt8wk9p1y9nm0000gp/T/1406060867/MyCoronaActivity-signed-aligned.apk to copy.

I did successfully build a two page test book, just to see what was going on. And everything went fine to build my apk file.  But any of my real apps won’t build and this message pops up. I am registered as a google play developer. We tried to remove Google Key from the .kwk file as it was not present in the test book, still did not work. That was the main difference in the .kwk files that did work (the test book) and the .kwk files that did not work (aside from them having much more content). 

We tried to go through http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#androidsettings and it still will not work. 

Are we missing any settings or that file?

Hi @maria8,

Have you contacted the developer of Kwik about this? Perhaps there’s something being added (or not being added) from that side.

Best regards,

Brent

Brent,

Kwik has never heard of and encountered that error before. They did give me this link http://kwiksher.com/tutorials_kwik/video-tutorial-google-play-key/ which was helpful and I did those additional steps for getting the correct keystone and key alias, but same error message. 

Failed to build APK

Warning: Could not find file /var/folders/67/gmgvg54s7f11pt8wk9p1y9nm0000gp/T/1406131206/MyCoronaActivity-signed-aligned.apk to copy.

Which makes me wonder if I rebuilt my projects again if it would work since my tiny little test project worked yesterday? Which I of coarse don’t want to do because that would take weeks. 

Any other possible ideas?

Hi @maria8,

I asked the engineers about this, and they’re requesting the complete console log from a failed build attempt. This should help us decipher what may be going on.

Thanks,

Brent

Brent, 

How do I do that from just corona? I know how to do it for a device and in kwik but not if the build failed. 

Thanks again!

Maria 

Hi Maria,

Please see the “Debugging” section for Android here:

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Thanks,

Brent

Brent, 

We followed the three steps you have given in the link. We have adb installed on my mac but what should we do after those steps. We don’t understand how to get the log after these steps. 

Thanks, 

Maria 

Also, we just finished another full app and released it yesterday, Corona was able to build a apk of that file. So I am not sure if its an issue with our 4 old apps. but the .lua code checks out fine and the project was made for universal. Kwik has no idea what is happening. 

If it’s happening when you try to build with Corona, your device log isn’t the issue.  We need to see the output in your terminal.  On a Mac you have two methods of starting Corona:  CoronaSDK and Corona Terminal.  If you are not starting Corona SDK using the “Corona Terminal” option you should.  It will start the Terminal app, which will start Corona SDK for you and any messages generated by Corona even during the build phase will show in that window.

We need to see the whole thing from the time you hit the build screen until it errors out.  It sounds like you may not have the Android bits installed correctly to do an Android build.

As a test, could you try and build the “Hello World” sample app for Android too?

Rob

Rob, 

Here is my output on the Corona Terminal. 

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

2014-08-04 08:44:41.396 Corona Simulator[8161:507] Version: 3.0.0

2014-08-04 08:44:41.397 Corona Simulator[8161:507] Build: 2014.2189

2014-08-04 08:44:41.422 Corona Simulator[8161:507] Platform: iPad / x86_64 / 10.9 / NVIDIA GeForce GT 650M OpenGL Engine / 2.1 NVIDIA-8.26.26 310.40.45f01

2014-08-04 08:44:41.527 Corona Simulator[8161:507] The file sandbox for this project is located at the following folder:

(/Users/maria/Library/Application Support/Corona Simulator/build-1A3D3C32826949DC9CA7DAAE2B5D07B1)

2014-08-04 08:44:41.807 Corona Simulator[8161:507] WARNING: Simulator does not support multitouch events

2014-08-04 08:44:41.809 Corona Simulator[8161:507] WARNING: Simulator does not support multitouch events

     [exec] Result: 1

2014-08-04 08:49:37.202 Corona Simulator[8161:507] WARNING: Could not find certificate for identity ((null)) whose user id is: (null)

2014-08-04 08:49:37.211 Corona Simulator[8161:507] WARNING: Could not find certificate for identity ((null)) whose user id is: (null)

2014-08-04 08:49:37.211 Corona Simulator[8161:507] WARNING: Could not find certificate for identity ((null)) whose user id is: (null)

logout

 

[Process completed]

 

 

 I only happens on 4 of my 5 apps. I can build one successfully for android, so I am not sure. And this certificate stuff, I followed all the steps so I am not sure if I am missing one, or what is going on. 

 

THanks!

Can you post a screen shot of your build screen right before you click the build button?

[twitter]@reeree917[/twitter]

Here ya go!

I couldn’t figure out how to attach image, so I posted a tweet. Sorry 

Here are a couple of things to try…

  1. Change to the debug keystore and try to build it.  Then try to switch back to your keystore and see if it asks you to put the password in again.

  2. Can I get a directory listing of the files in your project folder?

Thanks

Rob

Hi @maria8,

Have you contacted the developer of Kwik about this? Perhaps there’s something being added (or not being added) from that side.

Best regards,

Brent

Brent,

Kwik has never heard of and encountered that error before. They did give me this link http://kwiksher.com/tutorials_kwik/video-tutorial-google-play-key/ which was helpful and I did those additional steps for getting the correct keystone and key alias, but same error message. 

Failed to build APK

Warning: Could not find file /var/folders/67/gmgvg54s7f11pt8wk9p1y9nm0000gp/T/1406131206/MyCoronaActivity-signed-aligned.apk to copy.

Which makes me wonder if I rebuilt my projects again if it would work since my tiny little test project worked yesterday? Which I of coarse don’t want to do because that would take weeks. 

Any other possible ideas?

Hi @maria8,

I asked the engineers about this, and they’re requesting the complete console log from a failed build attempt. This should help us decipher what may be going on.

Thanks,

Brent

Brent, 

How do I do that from just corona? I know how to do it for a device and in kwik but not if the build failed. 

Thanks again!

Maria 

Hi Maria,

Please see the “Debugging” section for Android here:

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Thanks,

Brent

Brent, 

We followed the three steps you have given in the link. We have adb installed on my mac but what should we do after those steps. We don’t understand how to get the log after these steps. 

Thanks, 

Maria 

Also, we just finished another full app and released it yesterday, Corona was able to build a apk of that file. So I am not sure if its an issue with our 4 old apps. but the .lua code checks out fine and the project was made for universal. Kwik has no idea what is happening.