apk file missing

I successfully built, from the Corona Simulator, an iOS version of my ebook. I am trying to do the same for Android. Every time I build it throws an error about not being able to find an apk file. See screenshot.

It was my understanding that Corona does it all for me. I created my entire project with Kwik so I am not a programmer. How do I stop this error?

Hi @zentemple,

Please follow through the Android build guide. There are several necessary steps, one of which you may have missed, which could be causing this issue.

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

Sincerely,

Brent Sorrentino

Creating a key is a mystery to me. I see what the documentation says. Go to the Terminal window. Type in “keytool -genkey -v -keystore bluebear.keystore -alias bluebear -keyalg RSA -validity 999999”. Not clear to me if this is how you generate a key.

Not clear to me is the " - " before the words indicates a keyboard return or whether it should be included.

Not clear if this is the Corona Terminal window or the Mac terminal window. The documentation is written for someone with more terminal experience and terminology experience. 

I just need a key.

Mac terminal.

The hypens are just that hypens.  You should be able to cut and paste that string as is, with a couple of caveats.

Open a Mac Terminal window.  You will need to save this “keystore” file to some place on your computer where you will remember where it is and can find it later.  On a good note, once you tell Corona where it is, it should remember it, but still, you need to think about where you are when you run the command.

So from the terminal do the command:

pwd

This will show you where your current directory/folder is.  I normally don’t like to put random files in your “Home” directory, but in this case, it’s probably a good place to put this.  You should see “/Users/robertlewis” output by that command.  Next the string:

keytool -genkey -v -keystore bluebear.keystore -alias bluebear -keyalg RSA -validity 999999

I’m not sure if you put the words “bluebear” in there or you got it from someone else.  You can use the name of  your app in place of “bluebear” if that’s not your app.  Run that command from the $ prompt in the terminal.

Next in Corona SDK, do your Android build to bring up that dialog.  Where it says Keystore:  debug.  Hit the “Browse” button and navigate to your “Home” folder.  You should see a file there named bluebear.keystore (or whatever you named it).  Select it and click on the Okay or Open button.   In the next dialog below, you should be able to select whatever you put for the alias above (in this case it’s also “bluebear”. 

Then finish the build as normal.  These should be saved for you when you do your next build.

Thank you for a thorough answer. I’ve done all of that and I am still getting the same error. Does the file need to be somewhere special that I am missing?

Actually I don’t think your error has anything to do with the singing key.  Where are  you trying to save the output to?  (Save to folder entry)?

Just saving to a folder where most of the other work on the ebook is. Should the key be in the same location? It isn’t. (Bluebear is the name of the children’s ebook)

You should not save the .apk file (or your iOS app bundle) the the same folder as your code.

I made a folder called “AppBuilds” and made a book mark for it in finder (so it’s where Pictures, Desktop, etc. is on the left) and I store all my AppBuilds there.  That way when I got to install them, I have the same folder, so I don’t have to hunt down different ones for different apps.  But besides that, it’s a known problem that trying to store the app build in the same folder is not a good things.  Basically they are zip files and you’re zipping into a folder that you’re trying to zip the zip file.   I know that was confusing… It is to the system too.

Making a AppBuilds folder at the top user level, like you did. Will try this again in the morning. Thanks.

The Package is “com.leolabook.bluebear.build”.

The Keystore is “bluebear.keystore” saved in a folder under Users called AppBuild.

The build is in another folder with all my bluebear files.

I am getting the same error: “Failed to build APK. Warning: Could not find file /var/folders/gx/fw5tqnxn3g3fn8hx6m142s7r0000gn/T/1382532124/MyCoronaActivity-signed-aligned.apk to copy.” Why is it trying to find this address? Why does it look for MyCoronaActivity-signed-aligned.apk?

I didn’t have any issues creating the iOS version.

Anymore ideas?

Still stuck. Any ideas? See above.

I’m going to ask engineering to see if they have any ideas when I file my nightly forum report shortly.

What does engineering say about this problem?

I’ve not heard back yet.

Hi @zentemple,

Please follow through the Android build guide. There are several necessary steps, one of which you may have missed, which could be causing this issue.

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

Sincerely,

Brent Sorrentino

Creating a key is a mystery to me. I see what the documentation says. Go to the Terminal window. Type in “keytool -genkey -v -keystore bluebear.keystore -alias bluebear -keyalg RSA -validity 999999”. Not clear to me if this is how you generate a key.

Not clear to me is the " - " before the words indicates a keyboard return or whether it should be included.

Not clear if this is the Corona Terminal window or the Mac terminal window. The documentation is written for someone with more terminal experience and terminology experience. 

I just need a key.

Mac terminal.

The hypens are just that hypens.  You should be able to cut and paste that string as is, with a couple of caveats.

Open a Mac Terminal window.  You will need to save this “keystore” file to some place on your computer where you will remember where it is and can find it later.  On a good note, once you tell Corona where it is, it should remember it, but still, you need to think about where you are when you run the command.

So from the terminal do the command:

pwd

This will show you where your current directory/folder is.  I normally don’t like to put random files in your “Home” directory, but in this case, it’s probably a good place to put this.  You should see “/Users/robertlewis” output by that command.  Next the string:

keytool -genkey -v -keystore bluebear.keystore -alias bluebear -keyalg RSA -validity 999999

I’m not sure if you put the words “bluebear” in there or you got it from someone else.  You can use the name of  your app in place of “bluebear” if that’s not your app.  Run that command from the $ prompt in the terminal.

Next in Corona SDK, do your Android build to bring up that dialog.  Where it says Keystore:  debug.  Hit the “Browse” button and navigate to your “Home” folder.  You should see a file there named bluebear.keystore (or whatever you named it).  Select it and click on the Okay or Open button.   In the next dialog below, you should be able to select whatever you put for the alias above (in this case it’s also “bluebear”. 

Then finish the build as normal.  These should be saved for you when you do your next build.

Thank you for a thorough answer. I’ve done all of that and I am still getting the same error. Does the file need to be somewhere special that I am missing?