【问题标题】:cannot find symbol import com.google.android.gms.R找不到符号导入 com.google.android.gms.R
【发布时间】:2019-04-06 21:00:20
【问题描述】:

我在尝试在 android studio 中执行应用程序时收到此错误“找不到符号导入 com.google.android.gms.R”, 应用在eclipse中开发并导入android studio。

 Error details:
    symbol:   class R
    location: package com.google.android.gms
 Note: Some input files use or override a deprecated API.
 Note: Recompile with -Xlint:deprecation for details.
 1 error
 :app:compileDebugJavaWithJavac FAILED

 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.

【问题讨论】:

标签: android eclipse mobile-application


【解决方案1】:

您是否尝试过构建->清理项目,然后构建->重建项目,文件->使缓存无效并重新启动。这些可能有效,不确定。我过去常常为这些错误执行这些步骤

【讨论】:

  • 是的,实际上很多次,它清除了其他错误,但这个错误仍然出现
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-12-31
  • 2021-12-21
  • 2021-08-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-08-14
相关资源
最近更新 更多