Problem:
Beginning android programming… everything seemed to be working… but the R.layout.main is not being recognised anymore !!
Solution:
Simply remove the ‘import android.R’ statement… and things should be back to normal.
Context:
Having the import android.R seems to refer to the default R.java provided by the android platform instead of the version for your application…. hence the main.xml being referred to is not found. Removing the import statement fixes the problem by causing the application to search for R.java locally.
…wa’Allahu A’lam !
No comments:
Post a Comment