1: WARNING: menu.lua:29: Failed to find image ‘background.png’
It looks like it isn’t in your project folder. It should be spelled exactly the same. If you can’t find it just place some other image and name it that or change your code so you don’t access that file.
Like I mentioned in another active thread, you are probably experiencing this issue due to a typo.
If the file is there and it works on the simulator, but not on Android, then ThE iSsUE iS ProBAbly AbOUt cAsE senSITivitY. Android is a case sensitive system.
Make sure that the filename is exactly the same in the folder and in your code, e.g. make sure that one of them isn’t “Backgound.png” and the other one is “background.png”. When in doubt, go all lowercase.
Yeah, i’ve read about this and all well here. The name is in lower case and the same in folder and in code. I even tried to copy/paste name of the file one more time.
As I said it is an example project from tutorial which I just want to try build. I’m building it without any changes in assets and code. So here is archive you can try to build.
Well, that’s great, but what tutorial are you referring to? Please provide a link to it. There tens of possible tutorials you may be referring to on Corona’s site alone. If you found the tutorial on some other site, then we are talking about thousands of possibilities.
Again, the reason why I asked you to consider uploading your project was that since it is based on some tutorial, there shouldn’t be anything proprietary there that you would need to protect. Furthermore, I have seen countless cases where someone has “copied source directly, but the code still doesn’t work”, which is usually because the code source or other files were not in fact copied as is, but some changes were made.
But, in this case, point me to the tutorial and I’ll see if I can build it without issues.
This one. The tutorial from getting started section of corona docs. I was step-by-step copy/pasted the code from the tutorial. My full project in my previous message on google drive.
On that specific page, you have a notification that reads:
“For reference purposes, the program up to this point is available here. If your project doesn’t behave as expected, please compare this source code with your own.”
There’s a similar notification on every subsequent chapter that also includes a link to the source files up to that specific chapter. Before I take a swing at that, have you tried downloading those source files and building for Android using them?
Well, at least now we know that the tutorial itself isn’t the problem, which is good. But then we get to the grueling part, which is: “everything is supposed to work, but somehow it isn’t.”
There may be a typo somewhere in the code or with some file, or there may be some Mac specific issue that I have no clue about. I also took a quick glance at the build.settings files and your version has a lot of extra content that the tutorial’s version doesn’t have. Perhaps your culprit is hidden there? Try switching the build.settings and see if it works then.
No problem. Remember, one like per day keeps the bugs away.
Nah, but on a more serious note, this was one of those issues that would have been very difficult to solve without having access to your project. Especially since the real culprit was in a different file than where the problem was believed to be.
1: WARNING: menu.lua:29: Failed to find image ‘background.png’
It looks like it isn’t in your project folder. It should be spelled exactly the same. If you can’t find it just place some other image and name it that or change your code so you don’t access that file.
Like I mentioned in another active thread, you are probably experiencing this issue due to a typo.
If the file is there and it works on the simulator, but not on Android, then ThE iSsUE iS ProBAbly AbOUt cAsE senSITivitY. Android is a case sensitive system.
Make sure that the filename is exactly the same in the folder and in your code, e.g. make sure that one of them isn’t “Backgound.png” and the other one is “background.png”. When in doubt, go all lowercase.
Yeah, i’ve read about this and all well here. The name is in lower case and the same in folder and in code. I even tried to copy/paste name of the file one more time.
As I said it is an example project from tutorial which I just want to try build. I’m building it without any changes in assets and code. So here is archive you can try to build.