简体   繁体   English

Android Studio无法解析导入模块中的符号

[英]Android Studio cannot resolve symbol from imported module

I have an android app that worked great. 我有一个很棒的Android应用程序。 I have imported the ActiveAndroid project as a module because I did a change on the Model's file (I added a setId method, and that's why I can't use the gradle's version). 我已将ActiveAndroid项目作为模块导入,因为我对Model的文件进行了更改(我添加了setId方法,这就是为什么我不能使用gradle版本的原因)。 I was using Android Studio 1.5 and gradle 1.5.0. 我正在使用Android Studio 1.5和gradle 1.5.0。 I have updated the android studio version to 2.2 (which make me update the gradle version to 2.2.0-alpha1. Then now, the import of active android fails. For instance: 我已将android studio版本更新为2.2(这使我将gradle版本更新为2.2.0-alpha1。然后,活动的android导入失败。例如:

import com.activeandroid.Model;

Detects an error: cannot resolve symbol 'Model'. 检测到错误:无法解析符号“模型”。 What is going on? 到底是怎么回事? How can I solve that issue? 我该如何解决这个问题?

Thanks a lot! 非常感谢!

这是Android Studio 2.2预览版1中的一个错误。在这里进行报告: https : //code.google.com/p/android/issues/detail?id=210255

您可以执行“文件”->“使缓存无效...”,然后选择“无效并重新启动”选项以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM