Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓版本demo没能跑起来,安卓8.0 api 26 #28

Open
netgb opened this issue Jun 13, 2019 · 6 comments
Open

安卓版本demo没能跑起来,安卓8.0 api 26 #28

netgb opened this issue Jun 13, 2019 · 6 comments

Comments

@netgb
Copy link

netgb commented Jun 13, 2019

E/AndroidRuntime: FATAL EXCEPTION: main
Process: loon.template.mygame, PID: 2828
java.lang.NoSuchMethodError: No virtual method setSize(II)V in class Lloon/geom/Dimension; or its super classes (declaration of 'loon.geom.Dimension' appears in /data/app/loon.template.mygame-IlfOsUsmX6V1fLbn48UimA==/base.apk)
at loon.android.Loon.updateViewSize(Loon.java:896)

@cping
Copy link
Owner

cping commented Jun 13, 2019

这应该是loon-core-0.5.jar这个包导入失败的结果,报的错误是找不到loon核心包中的一个方法,而这个方法很基本,也是公开的,并且没有任何外部API依赖,只要jar能导入就会找到。

@cping
Copy link
Owner

cping commented Jun 13, 2019

jar导入出问题最简单的解决方式,删除相关jar,然后——拷贝源码,将LGame\Java\Loon-Neo\src以及LGame\Java\Loon-Neo-Android\src下的源码copy过去运行,这样就知道问题具体出在哪里了。

@netgb
Copy link
Author

netgb commented Jun 13, 2019

@cping OK,谢谢,根据你的说法操作能顺利跑起来了。

@ml3947
Copy link

ml3947 commented Aug 1, 2019

@cping 居然复活了....想一想最早看到CSDN博客的时候都是好久好久之前了

@cping
Copy link
Owner

cping commented Aug 1, 2019

@ml3947 确实好久不见了,主要是一直没时间更新,所以暂时博客也不开,开源项目也不写(因此也就不看issues),等以后有时间我可以再开个博客咱们好好聊聊技术类话题,话说以后准备再开个博客写写Unity3D,游戏算法,以及服务器开发之类的话题。

@ml3947
Copy link

ml3947 commented Sep 17, 2019

@cping 我觉得LGame饼子摊的太大了..其实只要Desktop、Android和IOS能有稳定的版本和方便的打包部署就可以吸引很多开发者了,但现在总感觉乱乱的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants