R Cannot Be Resolved
package com.ustr.eMIRnew; import java.util.ArrayList; import java.util.HashMap; import android.R; import android.app.Activity; import android.os.Bundle; import android.widget.List
Solution 1:
You are Importing android.R package, which is default one provided by Android.
If you want to access your own Layout, assets, String. . . then
Remove the import android.R statement.
No need to import your Package.R, By default, R file is generated during built.
Solution 2:
You are using the android R file you have to use you package R file if you want to access the main layout for you app. import you_package.R
Solution 3:
Remove the import statement:
import android.R;
In the onCreate method where you set the content view to R.layout.main, your project should be using this file:
com.ustr.eMIRnew.R
This file is generated when you build your project. Are you using Eclipse for building? Then this should not be a problem.
Post a Comment for "R Cannot Be Resolved"