Android - RelativeLayout Inflated As Button?
I have a weird problem. While running my Android application, I receive Exception: java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.RelativeLayo
Solution 1:
Delete the R.Java file and once recreated run the app it will work fine.
Solution 2:
The problem was that I've made one more layout file that I forgot about and it was for the same Activity byt different configuration. Problem solved.
Post a Comment for "Android - RelativeLayout Inflated As Button?"