【问题标题】:Cannot resolve symbol 'fragment'无法解析符号“片段”
【发布时间】:2015-05-09 10:44:44
【问题描述】:
compile 'br.com.liveo:navigationdrawer-material:1.0.5'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:support-v13:22.0.0'
compile 'com.android.support:gridlayout-v7:22.0.0

当我将上述片段添加到我的项目中并为该项目运行 Android gradle 构建任务时,片段未导入或构建

我做错了什么?

【问题讨论】:

  • 欢迎来到 StackOverflow。请您添加更多详细信息,例如,您是否收到错误消息?然后你会得到更好的答案。

标签: android android-layout fragment


【解决方案1】:

在你的 gradle 中添加这一行

compile 'com.android.support:appcompat-v7:22.1.0'

并删除

compile 'com.android.support:gridlayout-v7:22.0.0

【讨论】:

    猜你喜欢
    • 2015-03-04
    • 1970-01-01
    • 2018-06-23
    • 2018-11-11
    • 1970-01-01
    • 1970-01-01
    • 2021-02-04
    相关资源
    最近更新 更多