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

h5游戏接入googleplay时遇到的问题总结 #29

Open
BlackStar0313 opened this issue Jun 2, 2017 · 0 comments
Open

h5游戏接入googleplay时遇到的问题总结 #29

BlackStar0313 opened this issue Jun 2, 2017 · 0 comments

Comments

@BlackStar0313
Copy link
Owner

BlackStar0313 commented Jun 2, 2017

1.关于androidStudio相关的配置环境问题。

  • 因为之前AndroidStudio已经配置过sdk路径,不需要java的配置了,接入的google signin 服务,尽量保持AndroidStudio是最新版本,然后把Android sdk 中相关的 sdk , tools 等都更新到最新。

2.遇到加入google service依赖时android支持库的问题

  • 这个问题找了很长时间,最后结果是在用android studio下载的android支持库最后的几个版本中有些文件不见了,删除掉重新下载就好了。 解决的思路是,google service加入时候的依赖库有多个,同时加入时提示的错误并不一定就是能直接看出是什么问题的,尝试排除其他的,都单个去snyc ,这里就是这样解决的,提示有个文件找不到,然后发现目录里真的没有,再找这个是被哪里控制下载的,然后才解决的。

3. android上加入依赖库build.gradle区分是project还是app下的

  • 由于对android的目录结构不熟悉,在加入依赖时文档上写的是区分,但是没搞懂是什么意思,官方的samples是很重要的。仔细看sample就可以解决了。

4.遇到Activity等类的继承问题

  • 由于google sign in 需要用到一些网络的回调函数,所以activity需要换成某一个子类,这时候报错描述不清,对android环境忘记了都,找logcat找了半天,终于在log中找到问题。由于android工程直接拷贝的公司其他项目的,那个项目上面加了个webview,是weixinX5的,而我把之前weixin相关的依赖关掉了。webview换成android基本的方式,不清楚activiy为什么可以。

5.android中xml设置

  • 需要学习下android中xml设计的基础内容,有些标签不知道怎么用,一些属性很多,自己看着sample试了挺长时间,最后用最简单的方式用着,之后再说。
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

1 participant