简体   繁体   English

Corona SDK-APP在Android上不起作用

[英]Corona SDK - APP Doesnt work on Android

Someone could help me, I made a game in Corona and works perfectly on the simulator, but when I install the Android does not work, the functions are not called. 有人可以帮助我,我在Corona上做了一个游戏,并且可以在模拟器上完美运行,但是当我安装Android无法正常工作时,不会调用这些功能。 Follow the project https://github.com/AndreRavagnani/SamuraiTheRevenge 跟随项目https://github.com/AndreRavagnani/SamuraiTheRevenge

Thanks 谢谢

Make sure you aren't requiring anything in your main.lua file. 确保在main.lua文件中不需要任何内容​​。 Also what I would recommend doing is using ADB logcat to see what error is happening on the device. 我也建议您使用ADB logcat来查看设备上正在发生什么错误。 Most likely it's a syntax error that only occurs on build. 这很可能是仅在构建时发生的语法错误。 Plug your android device into your computer and run logcat to see what happens. 将您的android设备插入计算机,然后运行logcat看看会发生什么。

If it works on the simulator but not working on your device, then these could be the few possible errors. 如果它可以在模拟器上运行,但不能在您的设备上运行,则可能是一些可能的错误。

  1. Check the file names are proper, because corona is case sensitive, simulator wont care about the spellings but device will throw error. 检查文件名是否正确,因为电晕区分大小写,模拟器不会在意拼写,但设备会抛出错误。

  2. Check whether you are giving the proper scene name, this also case sensitive. 检查您是否给出了正确的场景名称,该名称也区分大小写。

  3. Check whether you are giving the proper file path . 检查是否提供了正确的文件路径。

I hope if you check these things it will give you some solution. 我希望如果您检查这些内容,将会为您提供解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM