重新启动Android时,我突然开始跌破错误。

我尝试了“清理构建”,“重建”,“使缓存无效”等,但没有任何效果。还遵循了在各个站点上提供的一些信息,以了解实际问题。我用--scan运行编译器,并得到以下问题的详细信息。

error: cannot access Hide
  class file for com.google.android.gms.common.internal.Hide not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
:app:compileDebugJavaWithJavac FAILED
:app:buildInfoGeneratorDebug

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

请指导如何立即解决此问题。突然出了什么问题。

最佳答案

最终遇到了调用此类的问题。

它是将实现“com.google.android.gms:play-services-ads:15.0.0”的更新为17.0.0

我从此问题中学到的一件事是,永远不要将多个更新库一起开始创建问题,这将是以后查找的挑战。一次更新一个,构建apk,然后尝试其他更新。

07-24 09:49
查看更多