【发布时间】:2016-03-05 12:20:42
【问题描述】:
我在 android 编程方面有点业余,我试图在 eclipse 中实现一个项目。我已经添加了 android-support-v7-appcompat.jar 作为库。我在toolbar.xml中收到错误
错误:在包“com.example.goon”中找不到属性“主题”的资源标识符
这是我的toolbar.xml代码:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
local:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
我对应该做什么有点困惑,如果有人能帮助我解决这个问题,我会很高兴。提前致谢。
【问题讨论】:
-
移动到 android studio 和 gradle 这就是我给你的所有帮助
-
我不能在 Eclipse 上继续吗?日食没有出路吗?
-
有,你用什么来构建的? gradle 还是别的什么?
-
不,我没有使用过 gradle。我是否需要将 gradle 与它集成?
-
那么你的构建系统是什么?蚂蚁?
标签: java android eclipse android-support-library android-appcompat