错误:无法找到符号static runOnUiThread

Cru*_*her 1 android compiler-errors importerror

我在编译具有以下import语句的android应用程序时遇到问题:

import static com.google.android.gms.internal.zzhl.runOnUiThread;
Run Code Online (Sandbox Code Playgroud)

收到以下错误:

Error:(37, 1) error: cannot find symbol static runOnUiThread
Run Code Online (Sandbox Code Playgroud)

尝试使用该方法还有另一个错误(显然,由于导入失败).

我试过围绕这个谷歌,但找不到任何东西.直截了当地蹲下这个方法和import语句.

有没有人知道这个,或者我怎么能得到这个编译?我走到了尽头.

Sni*_*kow 5

com.google.android.gms.internal.zzhl不是API或SDK的一部分,因为"内部"名称提示.并且"zzhl"类名实际上是由proguard生成的,因此它可能会在gms包的未来版本中发生变化.

你不应该直接使用该类或其中的任何方法.

这就是为什么你不能导入它.