错误:包com.google.android.gms.appstate不存在 [英] Error: package com.google.android.gms.appstate does not exist
本文介绍了错误:包com.google.android.gms.appstate不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法编译,因为这个错误我的Android项目。
/BaseGameUtils/src/main/java/com/google/example/games/basegameutils/GameHelper.java
错误:(32 39)错误:包com.google.android.gms.appstate不存在
错误:(293,28)错误:无法找到符号变量AppStateManager
错误:(294,30)错误:无法找到符号变量AppStateManager
错误:执行失败的任务:BaseGameUtils:compileReleaseJava。
编译失败;详情请参见编译器错误输出。
资料:构建失败
块引用>解决方案我看你有没有指定的护目镜Play服务库。
取而代之的是
编译com.google.android.gms:发挥服务:+'
试试这个
编译com.google.android.gms:发挥服务:7.8.0
注意:您可能有不同的版本,所以不是7.8输入
Can't compile my android project because of this error.
/BaseGameUtils/src/main/java/com/google/example/games/basegameutils/GameHelper.java Error:(32, 39) error: package com.google.android.gms.appstate does not exist Error:(293, 28) error: cannot find symbol variable AppStateManager Error:(294, 30) error: cannot find symbol variable AppStateManager Error:Execution failed for task ':BaseGameUtils:compileReleaseJava'.
Compilation failed; see the compiler error output for details. Information:BUILD FAILED
解决方案I see that you have not specified the goggle play services library.
Instead of this
compile 'com.google.android.gms:play-services:+'
Try this
compile 'com.google.android.gms:play-services:7.8.0'
Note: You might have a different version so instead of 7.8 enter that.
这篇关于错误:包com.google.android.gms.appstate不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文