我正在使用 intellij-idea 开发 Android 应用程序。我创建了一个带有 android 模块的项目,但这些都不是:
import android.app.Activity;
import android.os.Bundle;
被认可,我得到cannot resolve android symbol
。我用谷歌搜索了这个问题,但我发现那里的评论似乎都没有调试我的问题
你应该做的是,
1. Select your android project
2. press ctrl +alt + shift + S
3. Select SDK from the project settings
4. Check the files under the class path tab
5. There must be android.jar ,res ,annotations.jar
Probably there should be missed one or several files in step 5.
Then,
6. Go to Android SDK home path field and add your SDK folder again
files even though you have all the jars and still you are getting the error ,then remove all the jars from the class path and add them again ( like in step 6).
7. Build menu -Rebuild your project.
现在你的错误应该消失了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)