当我试图点击一个有onClick方法的按钮时,应用程序崩溃了,错误说“无法为android执行方法:onClick”。当我将onClick方法添加到文本输入时,也会发生这种情况。) { setContentView(R.layout.activity_main);} at android.widget.
我想要创建一个能够在所有API中运行的GridLayout。问题是,当我使用android.support.v7.widget.GridLayout而不是GridLayout时,该应用程序在Android7.1.1中运行良好,但在较早的版本中会崩溃。.widget.GridLayout cannot be cast to android.widget.GridLayout
at android.app.ActivityThre
在Android Studio中,我正在查看扩展了PagerAdapter的android.widget.DayPickerPagerAdapter的源代码。当我尝试转到PagerAdapter的declaration时,它显示Cannot find declaration to go to失败。red中出现了PageAdapter,我怀疑Android Studio没有下载合适的Android软件开发工具包?其他一些包也是如此。