简体   繁体   English

HaxeFlixel - Hello World with android 无法启动/关闭

[英]HaxeFlixel - Hello World with android wont start / turn off

Im trying to build hello world in haxeflixel for android.我正在尝试在 haxeflixel for android 中构建你好世界。 So there is deal: i create new project build it and then send it into device and run it.所以有交易:我创建新项目构建它,然后将它发送到设备并运行它。 After few seconds app turns off.几秒钟后应用程序关闭。 Its my first android app ever, so basically im pretty lost.这是我有史以来的第一个 Android 应用程序,所以基本上我很迷茫。 I added only one line in create method in MenuState class: add(new FlxText(100, 100, 0, "hello world"));我在 MenuState 类的创建方法中只添加了一行: add(new FlxText(100, 100, 0, "hello world")); . . My thinking was that i need to change resolution but after few tries nothing change.我的想法是我需要更改分辨率,但经过几次尝试后没有任何改变。 My current res is 800 x 480 .我当前的分辨率是800 x 480
I think that its in AndroidManifest.xml.我认为它在 AndroidManifest.xml 中。 But there should be default manifest if i understand it correctly.但如果我理解正确的话,应该有默认清单。
So where is catch?那么捕获在哪里? What i did wrong?我做错了什么? Thanks for tips.感谢提示。
Edit: forgot mention that spash logo didnt appear either.编辑:忘记提及 spash 徽标也没有出现。 And its turned on in code它在代码中打开

pastebin with logcat (splited on two)带 logcat 的 pastebin(分成两部分)
link 1链接 1
link 2链接 2

or maybe working hello world sample could be handy.或者也许工作你好世界示例可能很方便。 From that point i can look for my mistakes.从那时起,我可以寻找我的错误。

try this:试试这个:

add(new FlxText(0, 0, 100, "hello world"));

Just under super.create();就在super.create();之下. . Maybe it solves the problem.也许它可以解决问题。

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

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