Unable To Access Views In Android
I am using metaio sdk. I am trying to simply toggle the visibility of two imageviews when pressing a button but it is not working. My layout: Copy
Solution 2:
I guess the error is at 'R', All you need to do is import your package.R
Example
...
import com.yourpackage.yourappname.R; //Import this@OverridepublicvoidonCreate(Bundle savedInstanceState) {
MetaioCloudPlugin.startJunaio(null, getApplicationContext());
super.onCreate(savedInstanceState);
setContentView(R.layout.mainactivity);
...
Then it should work fine :D
Solution 3:
I encountered the same issue before. I managed to solve it by clearing the cache, data and uninstall the app from the device. It is working after I re-publish the app to the testing device. Maybe you could try it.
Post a Comment for "Unable To Access Views In Android"