簡體   English   中英

找不到符號導入 com.google.android.gms.R

[英]cannot find symbol import com.google.android.gms.R

我在嘗試在 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.

您是否嘗試過構建-> 清理項目,然后構建-> 重建項目,文件-> 使緩存無效並重新啟動。 這些可能有用,不確定。 我過去常常為這些類型的錯誤執行這些步驟

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM