Android Studio和QUOT;不能解析符号XXX"在基本的Andr​​oid教程 [英] Android Studio "Cannot resolve symbol XXX" on basic Android tutorial

查看:165
本文介绍了Android Studio和QUOT;不能解析符号XXX"在基本的Andr​​oid教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做的官方Android文档的入门级教程。我目前在这个步骤中,我创建第二个活动:

I'm doing the entry level tutorial on the official Android docs. I'm currently at this step where I'm creating the second activity:

http://developer.android.com/training/basics/ firstapp /出发activity.html

我看到的问题是在创造新的活动时,我必须给它新活动弹出一个分层的父母。我输入父(com.juannerito.montaigne.MainActivity)的名称,但在弹出不承认它,wont't让我创造新的actvity。

The problem I'm seeing is in creating the new activity when I have to give it a hierarchical parent in the New Activities popup. I enter the name of the parent (com.juannerito.montaigne.MainActivity) but the popup doesn't recognize it and wont't let me create the new actvity.

添加到我看到了很多不能解析符号的错误在MainActivity类文件。我不知道这些错误正在对构建任何重大差异(虽然我不能很确定,因为我是一个总的小白),但我觉得我必须先解决这些问题之前,我可以修复真正的问题我有。

Added to that I'm seeing a lot of "cannot resolve symbol" errors in the MainActivity class file. I'm not sure that these errors are having any material difference on the build (though I can't be really sure, as I'm a total noob), but i feel like I have to resolve these issues first before i can fix the real issue I'm having.

我使用Android的工作室0.26上的MacOS X 10.8.4。

I'm using Android Studio 0.26 on MacOS X 10.8.4.

任何帮助感激AP preciated!

any help gratefully appreciated!

推荐答案

我只是做了一个更新到0.26,并有同样的问题。关闭项目,并重新启动Android的工作室,然后打开该项目似乎已经清除任何它被认为是造成这一点。

I just did an update to 0.26 and had the same problem. CLosing the project, and restarting Android studio and then opening the project seems to have cleared whatever it was that was causing this.

这篇关于Android Studio和QUOT;不能解析符号XXX"在基本的Andr​​oid教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆