---
title: "【android】id cannot be resolved or is not a field"
author: "lx休止符"
date: "2014-11-25T14:00:34Z"
tags: []
categories: ["移动开发"]
slug: "android-id-cannot-be-resolved-or-is-not-a-field"
draft: false
lastmod: "2014-11-25T14:00:34Z"
id: 2160272
url: "https://263312372.iteye.com/blog/2160272"
---

android开发中遇到id cannot be resolved or is not a field错误，解决方案：

    确定引入的R包为 import com.${your app package}.R