无法解析符号MainActivity(使用Android Studio 2.0) [英] Cannot Resolve Symbol MainActivity (using Android Studio 2.0)

查看:138
本文介绍了无法解析符号MainActivity(使用Android Studio 2.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的activity_main.xml具有以下代码:

My activity_main.xml has this code :

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container"
    android:layout_width="match_parent" android:layout_height="match_parent"
    tools:context=".MainActivity" tools:ignore="MergeRootFrame" />

line tools:context给我一个错误,它无法解析符号MainAcitvity.

The line tools:context gives me the error that it cannot resolve the symbol MainAcitvity.

有人可以帮我吗?

推荐答案

给出

 tools:context=".MainActivity"

喜欢

tools:context="com.example.android.sunshine.app.MainActivity"

这篇关于无法解析符号MainActivity(使用Android Studio 2.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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